kc3-lang/libevent/buffer.c

Branch :


Log

Author Commit Date CI Message
fd36647a 2015-08-25 15:24:39 Don't use BSD u_* types. These types are not part of POSIX. As we only use them in a small number of places, we'd better replace them by C standard types. This makes a larger part of the code build for CloudABI.
841ecbd9 2015-01-05 09:32:53 Fix CVE-2014-6272 in Libevent 2.1 For this fix, we need to make sure that passing too-large inputs to the evbuffer functions can't make us do bad things with the heap. Also, lower the maximum chunk size to the lower of off_t, size_t maximum. This is necessary since otherwise we could get into an infinite loop if we make a chunk that 'misalign' cannot index into.
fb7e76ae 2014-11-30 11:05:40 Fix evbuffer_peek() with len==-1 and start_at non-NULL.
ba59923a 2014-11-30 11:05:40 Fix evbuffer_peek() with len==-1 and start_at non-NULL.
89c1a3b7 2014-09-18 12:40:38 Fix several memory leaks in the unit tests. Also add a comment to buffer.c about why we call evbuffer_file_segment_free on failure to add the segment.
9d6acdc5 2014-08-29 15:00:33 Merge remote-tracking branch 'origin/patches-2.0'
60f8f729 2014-08-29 14:59:17 Consistently check for failure from evbuffer_pullup() Closes issue #148.
d4095146 2013-07-31 22:23:16 Avoid leaking segment mappings when offset is not a page multiple Found by Bob / Black Hole on the mailing list.
02fbf687 2013-04-09 18:16:13 Use finalization feature so bufferevents can avoid deadlocks Since the bufferevents' events are now EV_FINALIZE (name pending), they won't deadlock. To clean up properly, though, we must use the finalization feature. This patch also split bufferevent deallocation into an "unlink" step that happens fast, and a "destruct" step that happens after finalization. More work is needed: there needs to be a way to specify a finalizer for the bufferevent's argument itself. Also, this finalizer business makes lots of the reference counting we were doing unnecessary. Also, more testing is needed.
e9f8feba 2012-11-06 17:37:28 Add a new callback to get called on evbuffer_file_segment free