summaryrefslogtreecommitdiff
path: root/lib/libevent
AgeCommit message (Collapse)Author
2015-02-05Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@Todd C. Miller
2015-01-06Backout revision 1.37. Setting ev->ev_pncalls to NULL results inAlexander Bluhm
a use after free if the callback has freed the ev. With F in malloc.conf both tmux and the regression tests triggered a segmentation fault. OK nicm@
2015-01-06Apply commit e0e6958aa074a7714cd7c4aa779a1dfede3a03b1 from upstream.Alexander Bluhm
- Avoid deadlock when activating signals. Fixes bug 3048812. Based on patch by Nicholas Marriott. The deadlock was ultimately fixed in a different way (by disabling reinit - see event.c r1.25). Add it now for consistency but without the Windows compatibility code. Convert the fnctl() calls to SOCK_CLOEXEC | SOCK_NONBLOCK to simplify the code. OK nicm@
2015-01-06Apply commit 2d8cf0b720cdd5f9f292f174a10ff74e62a380ec from upstream.Alexander Bluhm
- Defensive programming to prevent (hopefully impossible) stack-stomping OK nicm@
2015-01-05Fix CVE-2014-6272 in Libevent 1.4 from upstream:Alexander Bluhm
- 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
2014-11-21libraries shouldnt print to stderr when things dont go their way.David Gwynne
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
2014-11-21evbuffer_read will return 0 one an end of file condition.David Gwynne
2014-11-20zap some stray commas;Jason McIntyre
2014-11-20add evbuffer_expand to NAME;Jason McIntyre
2014-11-20put MLINKS in the order they appear in the man page, so i don;t go blindJason McIntyre
trying to check what's missing;
2014-11-20document the only macro i find useful when working with evbuffers.David Gwynne
2014-11-20might help to Xr evbuffer_new 3David Gwynne
2014-11-20im not good at grammar things.David Gwynne
from schwarze@
2014-11-20use .Va to say errno is a variable.David Gwynne
from schwarze@
2014-11-19fix erroneous capitalisation of a word in the middle of a sentence.David Gwynne
from schwarze again
2014-11-19less worse escapes for \ from ingo. im sure there's a much nicer way toDavid Gwynne
represent newlines still.
2014-11-19use .In to specify includes.David Gwynne
2014-11-19ingo also points out we're documenting things that work withDavid Gwynne
evbuffers, not evbufbuffers.
2014-11-19ingo points outDavid Gwynne
.Fo evbuffer_readln .Fa "struct evbuffer *buf" .Fa "size_t *read_out" .Fa "enum evbuffer_eol_style eol_style" .Fc is more readable mdoc for very long prototypes than lines like .Fn "evbuffer_readln" "struct evbuffer *buf" "size_t *read_out" "enum evbuffer_eol_style eol_style"
2014-11-19i got sick of having to read the source code to know what theDavid Gwynne
evbuffer_foo functions do. reyk, nicm, jmc, and schwarze seem to support a manpage as a reasonable solution to this problem. im putting this in a separate manpage because i find they get too cumbersome when they get too big. ingo agrees (and suggests even this might be too big). the file is evbuffer_new.3 rather than evbuffer.3 because we document functions. ok reyk@ nicm@ jmc@ schwarze@ this is rough, everyone has tweaks coming.
2014-11-19BUGS is no longer relevant, according to nicm;Jason McIntyre
2014-10-31Libevent has compatibilty wrappers in evutil. OpenBSD does not useAlexander Bluhm
them anymore, but evutil is still part of libevent's interface. Separate the API of evutil from libevent and do not include evutil.h from event.h automatically. A version bump is not necessary as the library itself does not change. Bulk ports build done by landry@ had no fallout. OK nicm@ deraadt@
2014-10-31Use CDIAGFLAGS from bsd.own.mk and append additional warning flags.Alexander Bluhm
All warnings have been fixed in libevent. OK nicm@
2014-10-30Fix whitespace errors in libevent.Alexander Bluhm
OK nicm@
2014-10-30The fdsz and n_events variables contain unsigned values that areAlexander Bluhm
derived from size_t and passed to functions as size_t parameters. Change them from int to size_t to avoid compiler warnings. OK doug@ nicm@
2014-10-29After removing all the #ifdef, the wrappers in evutil are ratherAlexander Bluhm
useless. Let libevent call the libc functions directly. OK nicm@
2014-10-29Remove workaround for Mac OS X kqueue bug.Alexander Bluhm
OK nicm@
2014-10-29Do not cast a (const void *) pointer to (void *) to avoid a warning.Alexander Bluhm
OK nicm@
2014-10-18Remove some #ifdef from libevent.Alexander Bluhm
OK nicm@
2014-10-18Remove the remaining #ifdef HAVE_ and the #define _GNU_SOURCE.Alexander Bluhm
OK nicm@
2014-10-17Remove #ifdef HAVE_backend and remove references to unimplementedAlexander Bluhm
backends. OK nicm@
2014-10-17Remove some #ifdef HAVE_syscall.Alexander Bluhm
OK nicm@
2014-10-17Remove #ifdef HAVE_.*_H, just include the header files.Alexander Bluhm
Do not include sys/param.h. OK nicm@
2014-10-16Remove #ifdef HAVE_CONFIG_H, there is no config.h file.Alexander Bluhm
OK nicm@
2014-10-15Remove #ifndef HAVE_TAILQFOREACH containing a private tailqAlexander Bluhm
implementation. OK nicm@
2014-10-11Userland reallocarray() audit.Doug Hogan
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
2014-10-08iRemove the #ifdef WIN32 implementation from libevent.Alexander Bluhm
OK nicm@
2014-10-08use reallocarray() to detect multiplicative integer overflow; obviousTheo de Raadt
pattern. This commit does not fix the non-obvious bloody horror of select.c.
2014-10-06Remove the #ifdef HAVE_SIGACTION from libevent. The structAlexander Bluhm
evsignal_info does not change, so no library crank. OK nicm@ deraadt@
2014-09-13Replace all queue *_END macro calls except CIRCLEQ_END with NULL.Doug Hogan
CIRCLEQ_* is deprecated and not called in the tree. The other queue types have *_END macros which were added for symmetry with CIRCLEQ_END. They are defined as NULL. There's no reason to keep the other *_END macro calls. ok millert@
2014-09-01The libevent event_log() function called by event_msgx() adds a newAlexander Bluhm
line itself. Do not print a double new line when EVENT_SHOW_METHOD is set. OK nicm@
2014-04-03sort SEE ALSO;Jason McIntyre
2014-04-03add helper functions to use asr with libevent.Eric Faurot
ok deraadt@
2013-08-24replace random() with arc4random.David Gwynne
blambert didnt like stuff linking to libevent getting warnings about use of an unsafe api. ok blambert@ mikeb@ deraadt@ millert@
2013-08-13Switch time_t, ino_t, clock_t, and struct kevent's ident and dataPhilip Guenther
members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME. Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures. DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead. Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
2013-04-29use FD_CLOEXEC instead of 1; from David HillOkan Demirmen
ok otto
2013-04-17evtag_marshal_timeval() truncates tv_sec to 32 bits, not passing the highTheo de Raadt
bits. Mark it with XXX 2038. I think it is poor style to create a "marshalling layer" which throws away information someone might need. ok nicm, who will pass the news upstream and ask for them to fix it
2013-04-17(long long) and %lld for big time_tTheo de Raadt
ok nicm, who will pass it upstream
2012-08-28Expose _EVENT_VERSION in event.h. This is expected by net/tor, which will spewPascal Stumpf
out scary warnings if it's not there. Bump minor accordingly. Requested by and ok dcoppa@, ok nicm@
2012-08-02remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.Okan Demirmen
ok guenther@