- 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:
Martin Wilke 2006-12-13 07:21:34 +00:00
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

View file

@ -7,6 +7,7 @@
PORTNAME= tnftpd
PORTVERSION= 20040810
PORTREVISION= 1
CATEGORIES= ftp ipv6
MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/

View 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));
}