axel/axel-fix_buffer_overflow.patch

12 lines
291 B
Diff
Raw Permalink Normal View History

--- http.c.orig 2010-10-12 16:45:27.000000000 +0200
+++ http.c 2010-10-12 16:47:19.000000000 +0200
@@ -164,7 +164,7 @@
{
i ++;
}
- strncat( conn->headers, s, MAX_QUERY );
+ strncat( conn->headers, s, sizeof(conn->headers) - strlen(conn->headers) - 1 );
}
#ifdef DEBUG