plug an off-by-one in http header parsing
marcm@ and naddy@ ok
This commit is contained in:
parent
99548d0ca2
commit
bf314c2b45
12
devel/soup/patches/patch-src_libsoup_soup-headers_c
Normal file
12
devel/soup/patches/patch-src_libsoup_soup-headers_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_libsoup_soup-headers_c,v 1.1 2003/08/28 22:39:40 avsm Exp $
|
||||
--- src/libsoup/soup-headers.c.orig 2003-08-28 12:41:22.000000000 -0400
|
||||
+++ src/libsoup/soup-headers.c 2003-08-28 12:42:03.000000000 -0400
|
||||
@@ -125,7 +125,7 @@ soup_headers_parse_request (gchar
|
||||
goto THROW_MALFORMED_HEADER;
|
||||
|
||||
if (sscanf (str,
|
||||
- "%16s %1024s HTTP/%1u.%1u",
|
||||
+ "%15s %1023s HTTP/%1u.%1u",
|
||||
method,
|
||||
path,
|
||||
&http_major,
|
Loading…
Reference in New Issue
Block a user