Commit Graph

46 Commits

Author SHA1 Message Date
joerg
1bf1694ac2 Drop stray ^ from output. Found by Abhinav. 2016-05-01 20:25:37 +00:00
joerg
b5b69f0009 Simplify. 2015-08-28 13:04:48 +00:00
spz
9bc6cb144e this generated include file oughtn't be around, the 'good' version is in
external/bsd/libevent/include/event2/event-config.h instead
2015-02-01 19:09:05 +00:00
njoly
20618ab369 void functions should not return values. 2015-02-01 10:19:00 +00:00
joerg
57bf5bb8f5 timeval fields might not be int, so use imaxabs. 2015-01-31 12:12:17 +00:00
joerg
68b95de475 Add missing __printflike 2015-01-30 00:07:06 +00:00
spz
6c6fe89327 merge and update manpages and include/event2/event-config.h
May need extra fixing around log-internal.h and log.c
2015-01-29 07:26:02 +00:00
spz
447d9fdc05 Upstream Change_log:
Changes in version 2.0.22-stable (5 Jan 2015)

SECURITY FIXES (evbuffers)
 o Avoid integer overflow bugs in evbuffer_add() and related functions.
   See CVE-2014-6272 advisory for more information.
   (20d6d4458bee5d88bda1511c225c25b2d3198d6c)

BUGFIXES (evhttp)
 o fix #73 and fix http_connection_fail_test to catch it (crash fix)
   (b618204 Greg Hazel)
 o Avoid racy bufferevent activation (5eb1788 Nate Rosenblum)

BUGFIXES (compilation and portability)
 o Fix compilation with WIN32_HAVE_CONDITION_VARIABLES enabled (7e45739)
 o Fix missing AC_PROG_SED on older Autoconfs (9ab2b3f Tay Ray Chuan)
 o Backport libevent to vanilla Autoconf 2.59 (as used in RHEL5)
   (74d4c44 Kevin Bowling)
 o Use AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for
   automake 1.13 compat (817ea36)
 o Rename configure.in to configure.ac to appease newer autoconfs (0c79787)
 o Avoid using top_srcdir in TESTS: new automakes do not like this (a55514e)
 o Use windows vsnprintf fixup logic on all windows environments (e826f19)
 o Fix a compiler warning when checking for arc4random_buf linker breakage.
   (5cb3865)
 o Fix another arc4random_buf-related warning (e64a2b0)
 o Add -Qunused-arguments for clang on macos (b56611d Trond Norbye)

BUGFIXES (resource leaks/lock errors on error)
 o Avoid leaking fds on evconnlistener with no callback set (69db261)
 o Avoid double-close on getsockname error in evutil_ersatz_socketpair
   (0a822a6)
 o Fix a locking error in bufferevent_socket_get_dns_error. (0a5eb2e)
 o libevent/win32_dealloc() : fix sizeof(pointer) vs sizeof(*pointer)
   (b8f5980 Frank Denis)

BUGFIXES: (other stability)
 o bufferevent_pair: don't call downcast(NULL) (f2428a2)
 o Consistently check for failure from evbuffer_pullup() (60f8f72)
 o Fix race caused by event_active (3c7d6fc vjpai)

BUGFIXES (miscellaneous)
 o Avoid redundant invocations of init_extension_functions for IOCP (3b77d62)
 o Typo fixes from Linus Nordberg (cec62cb, 8cd695b)
 o Add a few files created by "make verify" to .gitignore.
   (1a8295a Pierre Phaneuf)
 o regress_buffer: fix 'memcmp' compare size (79800df Maks Naumov)
 o Fix bufferevent setwatermark suspend_read (b34e4ac ufo2243)
 o Fix evbuffer_peek() with len==-1 and start_at non-NULL. (fb7e76a)

BUFGIXES (evdns)
 o Checking request nameserver for NULL, before using it.
   (5c710c0 Belobrov Andrey)
 o Fix SEGFAULT after evdns_base_resume if no nameservers installed.
   (f8d7df8 Azat Khuzhin)
 o Fix a crash in evdns related to shutting down evdns (9f39c88,e8fe749)

BUGFIXES (epoll)
 o Check does arch have the epoll_create and __NR_epoll_wait syscalls.
   (dfe1e52 Marcin Juszkiewicz)

BUGFIXES (evutil_secure_random)
 o Avoid other RNG initialization FS reads when urandom file is specified
   (9695e9c, bb52471)
 o When we seed from /proc/sys/kernel/random/uuid, count it as success (e35b540)
 o Document that arc4random is not a great cryptographic PRNG. (6e49696)
 o Add evutil_secure_rng_set_urandom_device_file (2bbb5d7)
 o Really remove RNG seeds from the stack (f5ced88)


DOCUMENTATION FIXES
 o Fix a mistake in evbuffer_remove() arguments in example http server
   code (c322c20 Gyepi Sam)
 o Fix a typo in a comment in buffer.h. Spotted by Alt_F4 (773b0a5)
 o Clarify event_base_loop exit conditions (031a803)
 o Use FindClose for handle from FindFirstFile in http-server.c (6466e88)
 o Fix a typo in a doxygen comment. Reported by 亦得. (be1aeff)
2015-01-29 06:37:53 +00:00
wiz
c07d6dcd59 At least event(3) looks better when passed through tbl(1), so set USETBL. 2014-04-19 08:03:21 +00:00
christos
2e8a2b3a38 oops missed one instance of fixman 2014-04-11 13:18:35 +00:00
christos
7a4471249a PR/48722: David H. Gutteridge: use HOST_SH to execute fixman 2014-04-10 23:28:11 +00:00
joerg
f95f4dd350 time_t is larger than int, so don't use abs. 2014-02-27 18:11:04 +00:00
joerg
4875b4da16 Add format string checks for _warn_helper. 2014-01-07 02:09:01 +00:00
joerg
782dab5744 Fix memcmp use. 2014-01-04 02:56:31 +00:00
christos
534b09b670 delete copy of queue.h that we don't use. 2013-11-21 19:12:40 +00:00
christos
644993d9ca another gcc workaround 2013-11-09 00:26:06 +00:00
joerg
3657cb7f1d Update LLVM/Clang snapshot to r191105. This brings in a better detection
of unused static variables and functions. Disable this for some external
code and for ioconf.c in the kernel.
2013-09-21 22:28:12 +00:00
joerg
975a152cfc If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.
2013-09-11 23:04:09 +00:00
christos
7816f7e5c1 missed one xkill in the rename 2013-04-12 21:49:54 +00:00
christos
71b46c3cd2 undo previous, breaks differently when testing for EINPROGRESS. 2013-04-12 20:02:00 +00:00
christos
1dab78693d #if 0 more 2013-04-12 20:00:21 +00:00
christos
21bc640ddf XXX: disable the simple conditions test right now because it depends on
thread scheduling timings and we don't seem to schedule threads the way
it assumes.
2013-04-12 19:59:26 +00:00
christos
a79378684d connect(2) returns EINPROGRESS for "239.10.20.30" which is supposed to
be an unroutable address. getsockopt() to find the actual error returns
0. This is prolly broken, but this temporary work-around fixes the regression
test.
2013-04-12 19:41:45 +00:00
joerg
0b4c1e12e1 Remove potentially extra consts. 2013-04-12 18:11:40 +00:00
joerg
64b3fac0e4 Work correctly with ISO C99 compiler. 2013-04-12 18:11:15 +00:00
christos
ef8dcd3907 remove bug we added. 2013-04-12 17:50:27 +00:00
christos
a18e92eddb fix merge that broke the tests 2013-04-11 20:14:44 +00:00
christos
318c3a432e rename deprecated to evdeprecated. 2013-04-11 17:49:12 +00:00
christos
62f324d012 the rest of the build glue. 2013-04-11 16:59:16 +00:00
christos
883110aaf9 merge conflicts, make compile with warnings. 2013-04-11 16:56:41 +00:00
christos
1d2a5e2b5b import script 2013-04-11 16:56:11 +00:00
christos
46e414e0ff Event2 build gluons 2013-04-11 16:55:51 +00:00
christos
6ecf6635ee import libevent 2.x 2013-04-11 16:43:19 +00:00
christos
5b62b33417 Add build glue 2013-04-11 16:06:47 +00:00
christos
e41eef06c7 import doxygen generated pages for libevent.
mandoc renders them butt-ugly.
2013-04-11 16:05:55 +00:00
jnemeth
c5103d3366 Fix build failure caused by previous change. Hi jruoho! 2012-03-12 02:18:49 +00:00
jruoho
0f39d48365 Skip the "simple timeout" test. This test case is known to fail rather
consistently when run in emulated environments such as Qemu.
2012-03-11 19:03:33 +00:00
joerg
ce5205bcbb Use __dead 2011-09-16 16:09:03 +00:00
joerg
2f9aafde9d Use the static inline for the body as well. 2011-05-23 15:23:24 +00:00
plunky
f33b316b63 Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.
2010-12-03 21:38:46 +00:00
pgoyette
603fd4b791 Calibrate the amount of time that a sleep() requires, and use that
interval instead of assuming that there are exactly 1000 real-time-clock
milliseconds per second!  On some ports when running under qemu, there
can be twice as many RTC milliseconds as expected.

This is part 2 of the changes required to make the libevent tests work
on port-amd64 under qemu.
2010-11-11 14:11:26 +00:00
pgoyette
21bfc7fd78 Adjust timers a bit so that the http timer can get a chance to expire,
even when running under qemu on platforms with a clock-skew problem.

The original 3-second timer was intended to be "longer than the http
timeout" (which is 2 seconds), and the updated 5-second value still meets
this requirement.  The updated value also meets the requirement even when
the http timeout stretches to 4-seconds under qemu.

This is part 1 of getting the libevent tests working on port-amd64 with
qemu.
2010-11-11 14:08:45 +00:00
plunky
19bcb70bf8 disable the DNS tests which rely on external hosts, as
they are not useful with automated testing systems without
internet connectivity.
2010-06-03 07:08:41 +00:00
joerg
f6ab6a9c5a Proper markup for example. Use <> include style. Bump date. 2010-05-14 03:02:13 +00:00
plunky
cfe3e08bfc add external framework for libevent 2009-11-02 10:03:56 +00:00
plunky
6448a78c94 libevent 1.4.12-stable 2009-11-02 10:00:52 +00:00