diff options
author | nectar <nectar@FreeBSD.org> | 2004-05-20 04:22:03 +0800 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2004-05-20 04:22:03 +0800 |
commit | 8115b3a5cb97f46f0d4fdb87d47d06a75a0f763b (patch) | |
tree | d5c62add9c1683ee9b77d04a9043a8c7e2e9b5c6 /www | |
parent | 232a5bdcfe8f94f45b21919e8faea9b02313127d (diff) | |
download | freebsd-ports-gnome-8115b3a5cb97f46f0d4fdb87d47d06a75a0f763b.tar.gz freebsd-ports-gnome-8115b3a5cb97f46f0d4fdb87d47d06a75a0f763b.tar.zst freebsd-ports-gnome-8115b3a5cb97f46f0d4fdb87d47d06a75a0f763b.zip |
Correct an exploitable vulnerability in neon's date parsing.
http://vuxml.freebsd.org/8d075001-a9ce-11d8-9c6d-0020ed76ef5a.html
The patch was supplied by Joe Orton.
Diffstat (limited to 'www')
-rw-r--r-- | www/neon/Makefile | 1 | ||||
-rw-r--r-- | www/neon/files/patch-ne_dates.c | 43 | ||||
-rw-r--r-- | www/neon26/Makefile | 1 | ||||
-rw-r--r-- | www/neon26/files/patch-ne_dates.c | 43 | ||||
-rw-r--r-- | www/neon28/Makefile | 1 | ||||
-rw-r--r-- | www/neon28/files/patch-ne_dates.c | 43 | ||||
-rw-r--r-- | www/neon29/Makefile | 1 | ||||
-rw-r--r-- | www/neon29/files/patch-ne_dates.c | 43 |
8 files changed, 176 insertions, 0 deletions
diff --git a/www/neon/Makefile b/www/neon/Makefile index fd1718d4577e..5733123b0945 100644 --- a/www/neon/Makefile +++ b/www/neon/Makefile @@ -7,6 +7,7 @@ PORTNAME= neon PORTVERSION= 0.24.5 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.webdav.org/neon/ diff --git a/www/neon/files/patch-ne_dates.c b/www/neon/files/patch-ne_dates.c new file mode 100644 index 000000000000..2a1ba4ae826d --- /dev/null +++ b/www/neon/files/patch-ne_dates.c @@ -0,0 +1,43 @@ +Index: src/ne_dates.c +=================================================================== +RCS file: /home/cvs/neon/src/ne_dates.c,v +retrieving revision 1.28.2.1 +diff -u -r1.28.2.1 ne_dates.c +--- src/ne_dates.c 2 May 2004 16:00:35 -0000 1.28.2.1 ++++ src/ne_dates.c 2 May 2004 18:21:53 -0000 +@@ -47,7 +47,7 @@ + /* RFC1123: Sun, 06 Nov 1994 08:49:37 GMT */ + #define RFC1123_FORMAT "%3s, %02d %3s %4d %02d:%02d:%02d GMT" + /* RFC850: Sunday, 06-Nov-94 08:49:37 GMT */ +-#define RFC1036_FORMAT "%s %2d-%3s-%2d %2d:%2d:%2d GMT" ++#define RFC1036_FORMAT "%10s %2d-%3s-%2d %2d:%2d:%2d GMT" + /* asctime: Wed Jun 30 21:49:08 1993 */ + #define ASCTIME_FORMAT "%3s %3s %2d %2d:%2d:%2d %4d" + +@@ -133,7 +133,7 @@ + time_t ne_rfc1123_parse(const char *date) + { + struct tm gmt = {0}; +- static char wkday[4], mon[4]; ++ char wkday[4], mon[4]; + int n; + /* it goes: Sun, 06 Nov 1994 08:49:37 GMT */ + n = sscanf(date, RFC1123_FORMAT, +@@ -156,7 +156,7 @@ + { + struct tm gmt = {0}; + int n; +- static char wkday[10], mon[4]; ++ char wkday[11], mon[4]; + /* RFC850/1036 style dates: Sunday, 06-Nov-94 08:49:37 GMT */ + n = sscanf(date, RFC1036_FORMAT, + wkday, &gmt.tm_mday, mon, &gmt.tm_year, +@@ -189,7 +189,7 @@ + { + struct tm gmt = {0}; + int n; +- static char wkday[4], mon[4]; ++ char wkday[4], mon[4]; + n = sscanf(date, ASCTIME_FORMAT, + wkday, mon, &gmt.tm_mday, + &gmt.tm_hour, &gmt.tm_min, &gmt.tm_sec, diff --git a/www/neon26/Makefile b/www/neon26/Makefile index fd1718d4577e..5733123b0945 100644 --- a/www/neon26/Makefile +++ b/www/neon26/Makefile @@ -7,6 +7,7 @@ PORTNAME= neon PORTVERSION= 0.24.5 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.webdav.org/neon/ diff --git a/www/neon26/files/patch-ne_dates.c b/www/neon26/files/patch-ne_dates.c new file mode 100644 index 000000000000..2a1ba4ae826d --- /dev/null +++ b/www/neon26/files/patch-ne_dates.c @@ -0,0 +1,43 @@ +Index: src/ne_dates.c +=================================================================== +RCS file: /home/cvs/neon/src/ne_dates.c,v +retrieving revision 1.28.2.1 +diff -u -r1.28.2.1 ne_dates.c +--- src/ne_dates.c 2 May 2004 16:00:35 -0000 1.28.2.1 ++++ src/ne_dates.c 2 May 2004 18:21:53 -0000 +@@ -47,7 +47,7 @@ + /* RFC1123: Sun, 06 Nov 1994 08:49:37 GMT */ + #define RFC1123_FORMAT "%3s, %02d %3s %4d %02d:%02d:%02d GMT" + /* RFC850: Sunday, 06-Nov-94 08:49:37 GMT */ +-#define RFC1036_FORMAT "%s %2d-%3s-%2d %2d:%2d:%2d GMT" ++#define RFC1036_FORMAT "%10s %2d-%3s-%2d %2d:%2d:%2d GMT" + /* asctime: Wed Jun 30 21:49:08 1993 */ + #define ASCTIME_FORMAT "%3s %3s %2d %2d:%2d:%2d %4d" + +@@ -133,7 +133,7 @@ + time_t ne_rfc1123_parse(const char *date) + { + struct tm gmt = {0}; +- static char wkday[4], mon[4]; ++ char wkday[4], mon[4]; + int n; + /* it goes: Sun, 06 Nov 1994 08:49:37 GMT */ + n = sscanf(date, RFC1123_FORMAT, +@@ -156,7 +156,7 @@ + { + struct tm gmt = {0}; + int n; +- static char wkday[10], mon[4]; ++ char wkday[11], mon[4]; + /* RFC850/1036 style dates: Sunday, 06-Nov-94 08:49:37 GMT */ + n = sscanf(date, RFC1036_FORMAT, + wkday, &gmt.tm_mday, mon, &gmt.tm_year, +@@ -189,7 +189,7 @@ + { + struct tm gmt = {0}; + int n; +- static char wkday[4], mon[4]; ++ char wkday[4], mon[4]; + n = sscanf(date, ASCTIME_FORMAT, + wkday, mon, &gmt.tm_mday, + &gmt.tm_hour, &gmt.tm_min, &gmt.tm_sec, diff --git a/www/neon28/Makefile b/www/neon28/Makefile index fd1718d4577e..5733123b0945 100644 --- a/www/neon28/Makefile +++ b/www/neon28/Makefile @@ -7,6 +7,7 @@ PORTNAME= neon PORTVERSION= 0.24.5 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.webdav.org/neon/ diff --git a/www/neon28/files/patch-ne_dates.c b/www/neon28/files/patch-ne_dates.c new file mode 100644 index 000000000000..2a1ba4ae826d --- /dev/null +++ b/www/neon28/files/patch-ne_dates.c @@ -0,0 +1,43 @@ +Index: src/ne_dates.c +=================================================================== +RCS file: /home/cvs/neon/src/ne_dates.c,v +retrieving revision 1.28.2.1 +diff -u -r1.28.2.1 ne_dates.c +--- src/ne_dates.c 2 May 2004 16:00:35 -0000 1.28.2.1 ++++ src/ne_dates.c 2 May 2004 18:21:53 -0000 +@@ -47,7 +47,7 @@ + /* RFC1123: Sun, 06 Nov 1994 08:49:37 GMT */ + #define RFC1123_FORMAT "%3s, %02d %3s %4d %02d:%02d:%02d GMT" + /* RFC850: Sunday, 06-Nov-94 08:49:37 GMT */ +-#define RFC1036_FORMAT "%s %2d-%3s-%2d %2d:%2d:%2d GMT" ++#define RFC1036_FORMAT "%10s %2d-%3s-%2d %2d:%2d:%2d GMT" + /* asctime: Wed Jun 30 21:49:08 1993 */ + #define ASCTIME_FORMAT "%3s %3s %2d %2d:%2d:%2d %4d" + +@@ -133,7 +133,7 @@ + time_t ne_rfc1123_parse(const char *date) + { + struct tm gmt = {0}; +- static char wkday[4], mon[4]; ++ char wkday[4], mon[4]; + int n; + /* it goes: Sun, 06 Nov 1994 08:49:37 GMT */ + n = sscanf(date, RFC1123_FORMAT, +@@ -156,7 +156,7 @@ + { + struct tm gmt = {0}; + int n; +- static char wkday[10], mon[4]; ++ char wkday[11], mon[4]; + /* RFC850/1036 style dates: Sunday, 06-Nov-94 08:49:37 GMT */ + n = sscanf(date, RFC1036_FORMAT, + wkday, &gmt.tm_mday, mon, &gmt.tm_year, +@@ -189,7 +189,7 @@ + { + struct tm gmt = {0}; + int n; +- static char wkday[4], mon[4]; ++ char wkday[4], mon[4]; + n = sscanf(date, ASCTIME_FORMAT, + wkday, mon, &gmt.tm_mday, + &gmt.tm_hour, &gmt.tm_min, &gmt.tm_sec, diff --git a/www/neon29/Makefile b/www/neon29/Makefile index fd1718d4577e..5733123b0945 100644 --- a/www/neon29/Makefile +++ b/www/neon29/Makefile @@ -7,6 +7,7 @@ PORTNAME= neon PORTVERSION= 0.24.5 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.webdav.org/neon/ diff --git a/www/neon29/files/patch-ne_dates.c b/www/neon29/files/patch-ne_dates.c new file mode 100644 index 000000000000..2a1ba4ae826d --- /dev/null +++ b/www/neon29/files/patch-ne_dates.c @@ -0,0 +1,43 @@ +Index: src/ne_dates.c +=================================================================== +RCS file: /home/cvs/neon/src/ne_dates.c,v +retrieving revision 1.28.2.1 +diff -u -r1.28.2.1 ne_dates.c +--- src/ne_dates.c 2 May 2004 16:00:35 -0000 1.28.2.1 ++++ src/ne_dates.c 2 May 2004 18:21:53 -0000 +@@ -47,7 +47,7 @@ + /* RFC1123: Sun, 06 Nov 1994 08:49:37 GMT */ + #define RFC1123_FORMAT "%3s, %02d %3s %4d %02d:%02d:%02d GMT" + /* RFC850: Sunday, 06-Nov-94 08:49:37 GMT */ +-#define RFC1036_FORMAT "%s %2d-%3s-%2d %2d:%2d:%2d GMT" ++#define RFC1036_FORMAT "%10s %2d-%3s-%2d %2d:%2d:%2d GMT" + /* asctime: Wed Jun 30 21:49:08 1993 */ + #define ASCTIME_FORMAT "%3s %3s %2d %2d:%2d:%2d %4d" + +@@ -133,7 +133,7 @@ + time_t ne_rfc1123_parse(const char *date) + { + struct tm gmt = {0}; +- static char wkday[4], mon[4]; ++ char wkday[4], mon[4]; + int n; + /* it goes: Sun, 06 Nov 1994 08:49:37 GMT */ + n = sscanf(date, RFC1123_FORMAT, +@@ -156,7 +156,7 @@ + { + struct tm gmt = {0}; + int n; +- static char wkday[10], mon[4]; ++ char wkday[11], mon[4]; + /* RFC850/1036 style dates: Sunday, 06-Nov-94 08:49:37 GMT */ + n = sscanf(date, RFC1036_FORMAT, + wkday, &gmt.tm_mday, mon, &gmt.tm_year, +@@ -189,7 +189,7 @@ + { + struct tm gmt = {0}; + int n; +- static char wkday[4], mon[4]; ++ char wkday[4], mon[4]; + n = sscanf(date, ASCTIME_FORMAT, + wkday, mon, &gmt.tm_mday, + &gmt.tm_hour, &gmt.tm_min, &gmt.tm_sec, |