mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Fix root exploid
PR: ports/106594 Submitted by: Sergey N. Voronkov <serg@tmn.ru> Approved by: maintainer Security: http://www.vuxml.org/freebsd/e969e6cb-8911-11db-9d01-0016179b2dd5.html
This commit is contained in:
parent
452bf8164a
commit
cda86e054f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=179632
2 changed files with 13 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= tnftpd
|
PORTNAME= tnftpd
|
||||||
PORTVERSION= 20040810
|
PORTVERSION= 20040810
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= ftp ipv6
|
CATEGORIES= ftp ipv6
|
||||||
MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/
|
MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/
|
||||||
|
|
||||||
|
|
12
ftp/tnftpd/files/patch-libnetbsd-glob.c
Normal file
12
ftp/tnftpd/files/patch-libnetbsd-glob.c
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
--- libnetbsd/glob.c.orig Mon Dec 15 13:18:43 2003
|
||||||
|
+++ libnetbsd/glob.c Wed Dec 13 08:16:13 2006
|
||||||
|
@@ -497,7 +497,8 @@
|
||||||
|
* we save one character so that we can use ptr >= limit,
|
||||||
|
* in the general case when we are appending non nul chars only.
|
||||||
|
*/
|
||||||
|
- return(glob2(pathbuf, pathbuf, pathbuf + sizeof(pathbuf) - 1, pattern,
|
||||||
|
+ return(glob2(pathbuf, pathbuf,
|
||||||
|
+ pathbuf + (sizeof(pathbuf) / sizeof(*pathbuf)) - 1, pattern,
|
||||||
|
pglob, limit));
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue