summaryrefslogtreecommitdiff
path: root/ftp/tnftpd/files/patch-libnetbsd-glob.c
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-12-13 07:21:34 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-12-13 07:21:34 +0000
commitcda86e054f663e58189f36701c11b1073f6e865f (patch)
treecc4eca6fa3f2716258688439bdc69218535cded0 /ftp/tnftpd/files/patch-libnetbsd-glob.c
parentCure textproc/docbook-xsd by fixing master site. (diff)
- 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
Diffstat (limited to '')
-rw-r--r--ftp/tnftpd/files/patch-libnetbsd-glob.c12
1 files changed, 12 insertions, 0 deletions
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));
+ }
+