summaryrefslogtreecommitdiff
path: root/www/thttpd
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
commit13512b40ca470a53ca3d78cfea821e606fbcad24 (patch)
tree6a7effe4e528aa02e5d616870bf9e21be549d23c /www/thttpd
parent1d5d8c4e8f6da1b1b96188ae43153b7ba5ca13b6 (diff)
downloadpkgsrc-13512b40ca470a53ca3d78cfea821e606fbcad24.tar.gz
Fix a buffer overflow reported in PR 22863 by Ross Patterson.
Bump PKGREVISION.
Diffstat (limited to 'www/thttpd')
-rw-r--r--www/thttpd/Makefile3
-rw-r--r--www/thttpd/distinfo3
-rw-r--r--www/thttpd/patches/patch-ae13
3 files changed, 17 insertions, 2 deletions
diff --git a/www/thttpd/Makefile b/www/thttpd/Makefile
index 916d1851cb0..94440cd1324 100644
--- a/www/thttpd/Makefile
+++ b/www/thttpd/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.23 2003/07/22 04:14:37 martti Exp $
+# $NetBSD: Makefile,v 1.24 2003/09/19 17:54:16 wiz Exp $
DISTNAME= thttpd-2.23beta1
PKGNAME= thttpd-2.23.0.1
+PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.acme.com/software/thttpd/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
diff --git a/www/thttpd/distinfo b/www/thttpd/distinfo
index 447fa7f0f6a..0dbb1848287 100644
--- a/www/thttpd/distinfo
+++ b/www/thttpd/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2002/06/16 19:10:25 wiz Exp $
+$NetBSD: distinfo,v 1.5 2003/09/19 17:54:17 wiz Exp $
SHA1 (thttpd-2.23beta1.tar.gz) = 22331276c2e5f6f1850f0b1ca2b739d0db88bf51
Size (thttpd-2.23beta1.tar.gz) = 128696 bytes
@@ -8,3 +8,4 @@ SHA1 (patch-aa) = 0f739bebf1ade45a9b9819fc92d48eeb1004eb66
SHA1 (patch-ab) = 3766ae48fabc1980483e482157d1267971e621df
SHA1 (patch-ac) = 71b2926a9513bd25a124510ad5f234d029492eb2
SHA1 (patch-ad) = 1d7777516ff0c5e7b03643809854bf96707759ec
+SHA1 (patch-ae) = f31dfec4d9a6531c8a195c6d539a6859799f3ffb
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 )