Age | Commit message (Collapse) | Author |
|
|
|
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@
|
|
- 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@
|
|
- Defensive programming to prevent (hopefully impossible) stack-stomping
OK nicm@
|
|
- 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
|
|
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
|
|
|
|
|
|
|
|
trying to check what's missing;
|
|
|
|
|
|
from schwarze@
|
|
from schwarze@
|
|
from schwarze again
|
|
represent newlines still.
|
|
|
|
evbuffers, not evbufbuffers.
|
|
.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"
|
|
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.
|
|
|
|
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@
|
|
All warnings have been fixed in libevent.
OK nicm@
|
|
OK nicm@
|
|
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@
|
|
useless. Let libevent call the libc functions directly.
OK nicm@
|
|
OK nicm@
|
|
OK nicm@
|
|
OK nicm@
|
|
OK nicm@
|
|
backends.
OK nicm@
|
|
OK nicm@
|
|
Do not include sys/param.h.
OK nicm@
|
|
OK nicm@
|
|
implementation.
OK nicm@
|
|
Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.
ok deraadt@
|
|
OK nicm@
|
|
pattern.
This commit does not fix the non-obvious bloody horror of select.c.
|
|
evsignal_info does not change, so no library crank.
OK nicm@ deraadt@
|
|
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@
|
|
line itself. Do not print a double new line when EVENT_SHOW_METHOD
is set.
OK nicm@
|
|
|
|
ok deraadt@
|
|
blambert didnt like stuff linking to libevent getting warnings about use of
an unsafe api.
ok blambert@ mikeb@ deraadt@ millert@
|
|
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@
|
|
ok otto
|
|
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
|
|
ok nicm, who will pass it upstream
|
|
out scary warnings if it's not there. Bump minor accordingly.
Requested by and ok dcoppa@, ok nicm@
|
|
ok guenther@
|