[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] [PATCH] evbuffer_search_range fails when searching the last byte



Hi,

I found that evbuffer_search_range fails when you try search the last byte with a non null end pointer.

You can work around this by checking the buffer length and calling evbuffer_search() instead, or evbuffer_search_range with a null end pointer.

I don't know how to fix it yet, but I added a failing test case :-)

Attachment: 0001-Add-failing-test-for-evbuffer_search_range.patch
Description: Binary data




Regards,
Nir