summaryrefslogtreecommitdiff
path: root/www/thttpd/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2003-09-19 17:54:16 +0000
committerwiz <wiz@pkgsrc.org>2003-09-19 17:54:16 +0000
commiteb598b19608060bd6210a0186169db049ede53c6 (patch)
tree6a7effe4e528aa02e5d616870bf9e21be549d23c /www/thttpd/patches
parentaa0b54aad6e98fda6c9d5d39e22c021144cf8dfa (diff)
downloadpkgsrc-eb598b19608060bd6210a0186169db049ede53c6.tar.gz
Fix a buffer overflow reported in PR 22863 by Ross Patterson.
Bump PKGREVISION.
Diffstat (limited to 'www/thttpd/patches')
-rw-r--r--www/thttpd/patches/patch-ae13
1 files changed, 13 insertions, 0 deletions
diff --git a/www/thttpd/patches/patch-ae b/www/thttpd/patches/patch-ae
new file mode 100644
index 00000000000..68bbf6c09cb
--- /dev/null
+++ b/www/thttpd/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.3 2003/09/19 17:54:18 wiz Exp $
+
+--- libhttpd.c.orig Mon May 27 03:22:26 2002
++++ libhttpd.c
+@@ -818,7 +818,7 @@ defang( char* str, char* dfstr, int dfsi
+ char* cp2;
+
+ for ( cp1 = str, cp2 = dfstr;
+- *cp1 != '\0' && cp2 - dfstr < dfsize - 1;
++ *cp1 != '\0' && cp2 - dfstr < dfsize - 5;
+ ++cp1, ++cp2 )
+ {
+ switch ( *cp1 )