From 9005faa3fa0055377a7c1203feafa1c37f983e48 Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Sun, 17 Apr 2005 15:12:00 +0000 Subject: Fix remote buffer overflow. Submitted by: Ulf Harnhammar --- ftp/axel/Makefile | 2 +- ftp/axel/files/patch-conn.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 ftp/axel/files/patch-conn.c (limited to 'ftp') diff --git a/ftp/axel/Makefile b/ftp/axel/Makefile index 81b26b85144a..91b0e38ea595 100644 --- a/ftp/axel/Makefile +++ b/ftp/axel/Makefile @@ -8,7 +8,7 @@ PORTNAME= axel PORTVERSION= 1.0a -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= ftp MASTER_SITES= http://www.lintux.cx/downloads/ diff --git a/ftp/axel/files/patch-conn.c b/ftp/axel/files/patch-conn.c new file mode 100644 index 000000000000..b5d73713eb4f --- /dev/null +++ b/ftp/axel/files/patch-conn.c @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- conn.c.orig ++++ conn.c +@@ -321,7 +321,7 @@ + break; + if( ( t = http_header( conn->http, "location:" ) ) == NULL ) + return( 0 ); +- sscanf( t, "%s", s ); ++ sscanf( t, "%255s", s ); + if( strstr( s, "://" ) == NULL) + { + sprintf( conn->http->headers, "%s%s", -- cgit v1.2.3