summaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2004-07-02 22:26:44 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2004-07-02 22:26:44 +0000
commit950f06a04d9fb85cadf823ab4308b68b6eaa6acc (patch)
treed049ad1cd7872342d0df28760afacd51c3418956 /ftp
parent- Update to 2.1.1 (diff)
Fix buffer overflow.
Submitted by: Ulf Harnhammar <Ulf.Harnhammar.9485@student.uu.se>
Notes
Notes: svn path=/head/; revision=112808
Diffstat (limited to 'ftp')
-rw-r--r--ftp/pavuk/Makefile2
-rw-r--r--ftp/pavuk/files/patch-src_http.c16
2 files changed, 17 insertions, 1 deletions
diff --git a/ftp/pavuk/Makefile b/ftp/pavuk/Makefile
index 71198e48d3ae..685b67ab69ca 100644
--- a/ftp/pavuk/Makefile
+++ b/ftp/pavuk/Makefile
@@ -7,7 +7,7 @@
PORTNAME= pavuk
PORTVERSION= 0.9.28
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= ftp www
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
http://www.idata.sk/~ondrej/sw/
diff --git a/ftp/pavuk/files/patch-src_http.c b/ftp/pavuk/files/patch-src_http.c
new file mode 100644
index 000000000000..4feaab46c206
--- /dev/null
+++ b/ftp/pavuk/files/patch-src_http.c
@@ -0,0 +1,16 @@
+
+$FreeBSD$
+
+--- src/http.c.orig Mon Jul 30 00:06:40 2001
++++ src/http.c Fri Jul 2 18:08:05 2004
+@@ -1111,8 +1111,8 @@
+ if (!loc)
+ return -1;
+
+- if (sscanf(loc, "http://%[.0-9A-Za-z_-]:%d", proxy, &port) < 1)
+- if (sscanf(loc, "%[.0-9A-Za-z_-]:%d", proxy, &port) !=2)
++ if (sscanf(loc, "http://%255[.0-9A-Za-z_-]:%d", proxy, &port) < 1)
++ if (sscanf(loc, "%255[.0-9A-Za-z_-]:%d", proxy, &port) !=2)
+ return -1;
+
+ _free(docp->http_proxy);