From fe86d9462b9f7c9a9ed5f9a55ce0c4b36b7a4927 Mon Sep 17 00:00:00 2001 From: Munechika SUMIKAWA Date: Mon, 15 Jul 2002 17:44:19 +0000 Subject: wwwoffle segfaulted when receiving "Content-Length" header field with negative integer. Submitted by: Niels Heinen Obtained from: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=152758 --- www/wwwoffle/files/patch-src::parse.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 www/wwwoffle/files/patch-src::parse.c (limited to 'www/wwwoffle/files') diff --git a/www/wwwoffle/files/patch-src::parse.c b/www/wwwoffle/files/patch-src::parse.c new file mode 100644 index 000000000000..05ba79c921cf --- /dev/null +++ b/www/wwwoffle/files/patch-src::parse.c @@ -0,0 +1,11 @@ +--- src/parse.c- Tue Jul 16 02:38:21 2002 ++++ src/parse.c Tue Jul 16 02:38:36 2002 +@@ -180,7 +180,7 @@ + if(!strcmp("POST",(*request_head)->method) || + !strcmp("PUT",(*request_head)->method)) + { +- if(length==-1) ++ if(length<0) + {free(url);return(NULL);} + + *request_body=CreateBody(length); -- cgit v1.2.3