mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Fix an illegal read error in the evbuffer_add_reference tests
Found with AddressSanitizer
This commit is contained in:
parent
3b1b330dfd
commit
860c71c892
@ -1660,7 +1660,7 @@ test_evbuffer_add_reference(void *ptr)
|
||||
evbuffer_add(buf1, "You shake and shake the ", 24);
|
||||
evbuffer_add_reference(buf1, "ketchup bottle", 14, ref_done_cb,
|
||||
(void*)3333);
|
||||
evbuffer_add(buf1, ". Nothing comes and then a lot'll.", 42);
|
||||
evbuffer_add(buf1, ". Nothing comes and then a lot'll.", 35);
|
||||
evbuffer_free(buf1);
|
||||
buf1 = NULL;
|
||||
tt_int_op(ref_done_cb_called_count, ==, 3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user