]> granicus.if.org Git - libevent/commit
Fix two unlocked reads in evbuffer.
authorNick Mathewson <nickm@torproject.org>
Tue, 16 Feb 2010 02:03:52 +0000 (21:03 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 16 Feb 2010 02:11:41 +0000 (21:11 -0500)
commit7116bf231433d565da33cee3b7292e212e026c7d
treebde5bc70768bd26d8b92bf1b78821236779f6178
parentaae7db5256e26ef70ba420a1d8f03eb1037221f8
Fix two unlocked reads in evbuffer.

Some initializers (in evbuffer_read and evbuffer_commit) were reading
the last and/or previous_to_last fields without grabbing the evbuffer
lock.

This may fix a hard-to-trigger race condition or two.
buffer.c