summaryrefslogtreecommitdiffstats
path: root/lib/libevent/buffer.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixed endless loop/ OOB write on 64 bit systems with large buffers.tobias2019-05-031-3/+3
| | | | | | | | | | | If a buffer exceeds UINT_MAX (which is only possible on 64 bit systems) an endless loop or OOB write can occur in buffer-specific readline functions. Switching variables in function scope to size_t solves these issue because relevant fields in struct buffer are already size_t. ok cheloha, deraadt, nicm, tedu
* Use recallocarray() to avoid leaving detritus in memory when resizingderaadt2017-03-181-2/+3
| | | | | the string buffer. ok jsing millert
* Remove NULL pointer checks before calls to free().nayden2016-09-031-3/+2
| | | | OK bluhm@ nicm@
* Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@millert2015-02-051-2/+2
|
* Fix CVE-2014-6272 in Libevent 1.4 from upstream:bluhm2015-01-051-9/+23
| | | | | | | | | | | - https://github.com/libevent/libevent/commit/7b21c4eabf1f3946d3f63cce1319c490caab8ecf - 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. On top of that do: - Update libevent version to 1.4.15-stable. - Use SIZE_MAX from limits.h instead of a private define. - Do not declare 'size_t need' twice to avoid a compiler warning. OK sthen
* libraries shouldnt print to stderr when things dont go their way.dlg2014-11-211-3/+3
| | | | | | | | | switch fprintf(stderr) over to event_warn() on malloc failure. fix up an errant newline in an existing event_warn while there. originally i just wanted to delete the fprintf diff from nicm@ who is away from a keyboard right now so cant commit guenther@ agrees with the idea
* Fix whitespace errors in libevent.bluhm2014-10-301-6/+6
| | | | OK nicm@
* After removing all the #ifdef, the wrappers in evutil are ratherbluhm2014-10-291-3/+2
| | | | | useless. Let libevent call the libc functions directly. OK nicm@
* Remove some #ifdef from libevent.bluhm2014-10-181-6/+1
| | | | OK nicm@
* Remove the remaining #ifdef HAVE_ and the #define _GNU_SOURCE.bluhm2014-10-181-6/+1
| | | | OK nicm@
* Remove #ifdef HAVE_.*_H, just include the header files.bluhm2014-10-171-12/+2
| | | | | Do not include sys/param.h. OK nicm@
* Remove #ifdef HAVE_CONFIG_H, there is no config.h file.bluhm2014-10-161-5/+1
| | | | OK nicm@
* iRemove the #ifdef WIN32 implementation from libevent.bluhm2014-10-081-19/+1
| | | | OK nicm@
* add missing header needed by event_warn()chl2010-07-171-1/+2
| | | | ok nicm@
* Update to 1.4.14b.nicm2010-07-121-3/+5
| | | | | | | | | | | | | | From their change log: o Fix memory-leak of signal handler array with kqueue. [backport] o Make evutil_make_socket_nonblocking() leave any other flags alone. o Adjusted fcntl() retval comparison on evutil_make_socket_nonblocking(). o Re-add event_siglcb; some old code _was_ still using it. :( o Fix a free(NULL) in min_heap.h o Clean up properly when adding a signal handler fails. Also a local change to use an int rather than a long for fcntl(). ok guenther deraadt
* Update libevent to 1.4.13.nicm2010-04-211-38/+112
| | | | | | | | | | | | | This is the core library only, the DNS parts are removed and it does not include the other extra bits (HTTP, DNS, and RPC), a separate port for these will appear in due course. Thanks to jsg, sthen, alek, gilles, jacekm, bernd and any others I've forgotten for testing/comments. Note that /usr/include/evdns.h should be removed after updating. ok deraadt
* In evbuffer_readline, do not lose data upon malloc failure. From mainstream:jacekm2009-10-131-2/+1
| | | | | http://levent.svn.sourceforge.net/viewvc/levent?view=rev&revision=1436 ok gilles@
* Update to libevent 1.3e while retaining our local changes.brad2008-05-021-9/+13
| | | | | "No objection" millert@ "the diff looks and works fine" reyk@
* Update to libevent-1.3b while retaining our local changes. beck@ OKmillert2007-03-191-8/+11
|
* Two libevent fixes from the SVN repo:millert2007-02-041-4/+5
| | | | | allow gotsig to terminate active event loop and evbuffer_find fix. OK brad@ pyr@
* 'tranfer' -> 'transfer' in comments.krw2006-12-211-2/+2
|
* fix a potential problem in multiple handling of va_list; use va_copy instead.brad2006-11-261-4/+10
| | | | | | From Niels Provos via the libevent SVN, by Alejo. ok deraadt@
* - limit the amount of data bufferevents are going to consume to somethingbrad2006-03-181-3/+18
| | | | | | | | | | | | reasonable; in some circumstances it could happen that libevent happily allocated 100MB in read buffers without telling the user; found by christopher maxwell - parts of these changes are from his patch. - allow setting an event base for bufferevents; from phil oleson - improved manpage from Phil Oleson From libevent CVS
* another fix from art.brad2006-01-251-3/+3
| | | | From libevent CVS
* add evbuffer_add_vprintf interface from artur grabowskibrad2006-01-231-27/+35
| | | | | | From libevent CVS ok markus@
* zap trailing whitespaces, no binary changegrunk2005-07-021-3/+3
| | | | ok brad@ beck@
* update to libevent 1.1a; keep local changesbrad2005-06-181-4/+4
| | | | ok grunk@
* update to libevent 1.0d; keep local changesbrad2005-05-041-2/+49
| | | | | | | thanks to Alexander von Gernler for testing and some bug fixes ok mpf@ norby@
* update to libevent 1.0c; keep local changesbrad2005-04-221-23/+179
| | | | | | | | | | no shared lib so no ABI/API check is necessary thanks to Alexander von Gernler for submitting another diff in an attempt to update libevent and for a use-after-free fix. ok henning@ deraadt@
* backout. not discussed, and very wrong. bad bradderaadt2005-04-191-179/+23
|
* update to libevent 1.0c; keep local changesbrad2005-04-191-23/+179
|
* update to libevent 0.8; keep local changesbrad2004-04-281-0/+222
ok markus@