From cda86e054f663e58189f36701c11b1073f6e865f Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Wed, 13 Dec 2006 07:21:34 +0000 Subject: - Fix root exploid PR: ports/106594 Submitted by: Sergey N. Voronkov Approved by: maintainer Security: http://www.vuxml.org/freebsd/e969e6cb-8911-11db-9d01-0016179b2dd5.html --- ftp/tnftpd/files/patch-libnetbsd-glob.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ftp/tnftpd/files/patch-libnetbsd-glob.c (limited to 'ftp/tnftpd/files/patch-libnetbsd-glob.c') diff --git a/ftp/tnftpd/files/patch-libnetbsd-glob.c b/ftp/tnftpd/files/patch-libnetbsd-glob.c new file mode 100644 index 000000000000..d54a2e93d6fa --- /dev/null +++ b/ftp/tnftpd/files/patch-libnetbsd-glob.c @@ -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)); + } + -- cgit v1.2.3