[Libevent-users] evbuffer_find fix and a test
Ken Cox
kenstir78 at comcast.net
Mon Apr 16 16:19:30 EDT 2007
Greetings,
We found an error where evbuffer_find(buf,"\r\n",2) would find only a bare
"\r" at the end of the buffer, if there happened to be a leftover "\n" in
the next byte. I added new tests to regress.c to show the bug and the
error which is visible on FC6 with valgrind. I'm not certain that the
enclosed fix is the most concise one possible, but it fixes the bug and
the valgrind error.
Regards,
Ken Cox
k e n s t i r a t v i v o x d o t c o m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libevent.patch
Type: application/octet-stream
Size: 2489 bytes
Desc: not available
Url : http://monkeymail.org/archives/libevent-users/attachments/20070416/61ca94c5/libevent-0001.obj
More information about the Libevent-users
mailing list