diff options
author | wiz <wiz@pkgsrc.org> | 2003-09-19 17:54:16 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2003-09-19 17:54:16 +0000 |
commit | eb598b19608060bd6210a0186169db049ede53c6 (patch) | |
tree | 6a7effe4e528aa02e5d616870bf9e21be549d23c /www/thttpd/patches | |
parent | aa0b54aad6e98fda6c9d5d39e22c021144cf8dfa (diff) | |
download | pkgsrc-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-ae | 13 |
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 ) |