diff -U 3 -H -d -r -N -x '*~' -x 'Makefile*' -- opt/ecos/ecos/packages/net/athttpd/current/ChangeLog home/danny/ecos_patch/packages/net/athttpd/current/ChangeLog --- opt/ecos/ecos/packages/net/athttpd/current/ChangeLog 2007-11-14 16:39:13.000000000 +0200 +++ home/danny/ecos_patch/packages/net/athttpd/current/ChangeLog 2008-03-04 12:24:11.000000000 +0200 @@ -1,3 +1,6 @@ +2008-03-04 Danny Sade + * src/socket.c: put NULL at the end of inbuff on each iteration, + preventing strstr from looking at old data beyond inbuffer_len 2007-11-12 Oyvind Harboe 2007-11-12 Jonathan Larmour diff -U 3 -H -d -r -N -x '*~' -x 'Makefile*' -- opt/ecos/ecos/packages/net/athttpd/current/src/socket.c home/danny/ecos_patch/packages/net/athttpd/current/src/socket.c --- opt/ecos/ecos/packages/net/athttpd/current/src/socket.c 2006-11-27 17:41:56.000000000 +0200 +++ home/danny/ecos_patch/packages/net/athttpd/current/src/socket.c 2008-03-04 12:15:24.000000000 +0200 @@ -257,6 +257,7 @@ } httpstate.inbuffer_len += len; + httpstate.inbuffer[httpstate.inbuffer_len] = '\0'; } httpstate.inbuffer[httpstate.inbuffer_len] = '\0';