]>
granicus.if.org Git - libevent/log
Nick Mathewson [Tue, 13 Aug 2013 15:12:25 +0000 (11:12 -0400)]
Oops; revert testing code
Nick Mathewson [Tue, 13 Aug 2013 14:59:27 +0000 (10:59 -0400)]
Avoid other RNG initialization FS reads when urandom file is specified
Nick Mathewson [Tue, 13 Aug 2013 14:59:20 +0000 (10:59 -0400)]
Finish a sentence
Nick Mathewson [Tue, 6 Aug 2013 21:06:23 +0000 (17:06 -0400)]
Add evutil_secure_rng_set_urandom_device_file
This experimental function is needed for some seccomp2 hackery to
work, and should have no effect for systems that don't use it.
Frank Denis [Sat, 20 Jul 2013 21:02:49 +0000 (14:02 -0700)]
libevent/win32_dealloc() : fix sizeof(pointer) vs sizeof(*pointer)
Nick Mathewson [Mon, 10 Jun 2013 19:16:13 +0000 (15:16 -0400)]
Merge remote-tracking branch 'public/pr/79' into patches-2.0
Nick Mathewson [Mon, 10 Jun 2013 14:38:12 +0000 (10:38 -0400)]
Document that arc4random is not a great cryptographic PRNG.
Nick Mathewson [Mon, 10 Jun 2013 14:33:56 +0000 (10:33 -0400)]
When we seed from /proc/sys/kernel/random/uuid, count it as success
Found by Joseph Spadavecchia
Greg Hazel [Wed, 29 May 2013 21:19:14 +0000 (14:19 -0700)]
restore the comment
Azat Khuzhin [Fri, 10 May 2013 23:53:11 +0000 (03:53 +0400)]
Fix SEGFAULT after evdns_base_resume if no nameservers installed.
If there is no nameservers installed, using
evdns_base_nameserver_ip_add(), than evdns_base_resume() will SEGFAULT,
because of NULL dereference in evdns_requests_pump_waiting_queue()
Conflicts:
evdns.c
Nick Mathewson [Wed, 29 May 2013 17:30:56 +0000 (13:30 -0400)]
Use windows vsnprintf fixup logic on all windows environments
Previously I'd relied on mingw to provide a vsnprintf with a
conformant return value. But it appears that some mingw
environments don't do that.
Belobrov Andrey [Mon, 6 May 2013 14:15:03 +0000 (18:15 +0400)]
Checking request nameserver for NULL, before using it.
Nick Mathewson [Tue, 30 Apr 2013 15:42:53 +0000 (11:42 -0400)]
Start a changelog for Libevent 2.0.22-stable
Nick Mathewson [Thu, 25 Apr 2013 17:43:49 +0000 (13:43 -0400)]
Merge remote-tracking branch 'origin/pr/36' into patches-2.0
Nick Mathewson [Tue, 26 Mar 2013 01:12:49 +0000 (21:12 -0400)]
Fix a typo in a comment in buffer.h. Spotted by Alt_F4
Greg Hazel [Thu, 14 Feb 2013 17:54:56 +0000 (09:54 -0800)]
fix #73 and fix http_connection_fail_test to catch it
Nick Mathewson [Sat, 9 Feb 2013 03:08:18 +0000 (22:08 -0500)]
Avoid using top_srcdir in TESTS-new automakes do not like this
Nick Mathewson [Sat, 9 Feb 2013 03:07:43 +0000 (22:07 -0500)]
Rename configure.in to configure.ac to appease newer autoconfs
Nick Mathewson [Fri, 8 Feb 2013 18:03:29 +0000 (13:03 -0500)]
Use AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for autmake 1.13 compat
Patch from cazfi.
Nick Mathewson [Tue, 5 Feb 2013 20:07:32 +0000 (15:07 -0500)]
Fix a locking error in bufferevent_socket_get_dns_error.
Patch from Ka-Hing Cheung.
Gyepi Sam [Tue, 22 Jan 2013 16:59:07 +0000 (16:59 +0000)]
Fix a mistake in evbuffer_remove() arguments in example http server code
(commit message by nickm)
Kevin Bowling [Mon, 3 Jan 2011 22:09:21 +0000 (15:09 -0700)]
Backport libevent to vanilla Autoconf 2.59 (as used in RHEL5)
This is a backport of
ad03952 .
Tay Ray Chuan [Tue, 15 Jan 2013 04:52:08 +0000 (12:52 +0800)]
Fix missing AC_PROG_SED on older Autoconfs
For pre-2.59b Autoconfs, AC_PROG_SED is not available [1]; on such
systems, avoid calling AC_PROG_SED, while providing a sensible SED.
This aids backporting to Autoconf 2.59.
[1] http://lists.gnu.org/archive/html/autotools-announce/2004-08/msg00002.html
Nick Mathewson [Thu, 20 Dec 2012 16:48:05 +0000 (11:48 -0500)]
Avoid double-close on getsockname error in evutil_ersatz_socketpair
Found by coverity; CID 739726
Nick Mathewson [Thu, 20 Dec 2012 16:47:09 +0000 (11:47 -0500)]
Avoid leaking fds on evconnlistener with no callback set
There's no way to retrieve an fd from an evconnlistener whose
callback has been cleared, so we had better close any such fd.
Found by coverity; CID 739725.
Nick Mathewson [Tue, 4 Dec 2012 17:01:25 +0000 (12:01 -0500)]
Fix compilation with WIN32_HAVE_CONDITION_VARIABLES enabled
Reported by Xiuqiang Jiang
Nick Mathewson [Mon, 19 Nov 2012 15:56:16 +0000 (10:56 -0500)]
Increment version to 2.0.21-stable-dev
Nick Mathewson [Sun, 18 Nov 2012 06:39:10 +0000 (01:39 -0500)]
Increment libtool version for 2.0.21 too
Nick Mathewson [Sun, 18 Nov 2012 06:38:07 +0000 (01:38 -0500)]
Increment version to 2.0.21-stable
Nick Mathewson [Sun, 18 Nov 2012 06:36:33 +0000 (01:36 -0500)]
Changelog for 2.0.21-stable
Nick Mathewson [Sun, 18 Nov 2012 06:36:03 +0000 (01:36 -0500)]
Make ssl version check in unit tests work
Nick Mathewson [Fri, 16 Nov 2012 16:55:27 +0000 (11:55 -0500)]
Avoid crash when event_pending() called with no event_base set on event
Instead, give a warning and return 0.
Reported by Antony Dovgal on github as
https://github.com/libevent/libevent/issues/19
Patrick Pelletier [Thu, 8 Nov 2012 03:48:22 +0000 (19:48 -0800)]
remove stray 'x' so print_err will compile when uncommented
Nick Mathewson [Fri, 16 Nov 2012 15:28:19 +0000 (10:28 -0500)]
Make rpcgen_wrapper.sh work on systems without a "python2" binary
Nick Mathewson [Thu, 15 Nov 2012 16:43:20 +0000 (11:43 -0500)]
Warn when openssl version in unit test mismatches compiled version.
Nick Mathewson [Thu, 15 Nov 2012 16:42:14 +0000 (11:42 -0500)]
Fix renegotiation test to work around openssl 1.0.1 bug
There's a bug in openssl 1.0.1 where TLS1.1 and TLS1.2 can't
renegotiate with themselves. When testing renegotiation with OpenSSL
>=1.0.1 and <1.0.1d, disable those protocols.
Nick Mathewson [Fri, 2 Nov 2012 15:44:29 +0000 (11:44 -0400)]
Fix compilation on mingw64 with -DUSE_DEBUG
Nick Mathewson [Thu, 1 Nov 2012 21:38:34 +0000 (17:38 -0400)]
Compile without warnings on mingw64
This is mostly a matter of catching cases where we were still
assuming that evutil_socket_t could be used as an int.
Nick Mathewson [Fri, 26 Oct 2012 23:36:44 +0000 (19:36 -0400)]
Merge remote-tracking branch 'rosslagerwall/python2-2.0' into patches-2.0
Juan Pablo Fernandez [Fri, 26 Oct 2012 23:33:31 +0000 (19:33 -0400)]
Close IOCP listener socket on free when LEV_OPT_CLOSE_ON_FREE is set
Nick Mathewson [Thu, 25 Oct 2012 02:48:59 +0000 (22:48 -0400)]
Merge remote-tracking branch 'public/20_bev_timeout_semantics' into patches-2.0
Ross Lagerwall [Tue, 23 Oct 2012 12:30:58 +0000 (13:30 +0100)]
Use python2 rather than python
python may refer to either python2 or python3 so rather by explicit by
using python2.
See PEP 394 - http://www.python.org/dev/peps/pep-0394/ for more
details.
Joachim Bauch [Thu, 6 Sep 2012 08:01:10 +0000 (10:01 +0200)]
No need to reserve space if reading is suspended.
Conflicts:
bufferevent_openssl.c
Joachim Bauch [Mon, 3 Sep 2012 19:42:15 +0000 (21:42 +0200)]
Stop looping in "consider_reading" if reading is suspended.
George Danchev [Thu, 13 Sep 2012 00:12:03 +0000 (20:12 -0400)]
FIx another memleak on OOM in evdns
George Danchev [Thu, 13 Sep 2012 00:11:12 +0000 (20:11 -0400)]
Avoid a memory-leak on OOM in evdns.
Nick Mathewson [Fri, 7 Sep 2012 19:53:02 +0000 (15:53 -0400)]
Don't discard SSL read event when timeout and read come close together
Nick Mathewson [Fri, 24 Aug 2012 15:40:46 +0000 (11:40 -0400)]
Increment version to 2.0.20-stable-dev
Nick Mathewson [Thu, 23 Aug 2012 18:39:30 +0000 (14:39 -0400)]
Add a date to the changelog
Nick Mathewson [Thu, 23 Aug 2012 18:38:54 +0000 (14:38 -0400)]
Increment version to 2.0.20-stable
Nick Mathewson [Thu, 23 Aug 2012 14:36:39 +0000 (10:36 -0400)]
Initial changelog and credits for 2.0.20
Nick Mathewson [Wed, 22 Aug 2012 16:30:42 +0000 (12:30 -0400)]
Correctly invoke callbacks when a SSL bufferevent reads some and then blocks.
Based on a patch by Andrew Hochhaus, who correctly diagnosed this bug.
Nick Mathewson [Thu, 2 Aug 2012 15:56:17 +0000 (11:56 -0400)]
Add explicit AC_PROG_SED to configure.in so all autoconfs will expose $(SED)
Nick Mathewson [Thu, 2 Aug 2012 15:38:32 +0000 (11:38 -0400)]
Fix an unused variable warning on *BSD.
Greg Hazel [Mon, 30 Jul 2012 20:52:55 +0000 (16:52 -0400)]
Avoid segfault on weird timeout during name lookup.
If an evdns_getaddrinfo timeout happens while pending_cb is set, and
a callback is about to run, but we get a call to
evdns_getaddrinfo_gotresolve before it finishes.
Github issue #60. Thanks to Greg Hazel for patch and patience.
Nick Mathewson [Thu, 26 Jul 2012 14:39:05 +0000 (10:39 -0400)]
Check more setsockopt return values when binding sockets. Found by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:38:29 +0000 (10:38 -0400)]
memset sockaddr_in before using it. Found by coverity.
Nick Mathewson [Thu, 26 Jul 2012 14:37:47 +0000 (10:37 -0400)]
Move assignment outside tt_assert in ssl unit tests. Appeases coverity.
Nick Mathewson [Thu, 26 Jul 2012 14:37:13 +0000 (10:37 -0400)]
Add checks to various return values in unit tests. Found by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:34:06 +0000 (10:34 -0400)]
Avoid possible needless call to writev. Found by coverity.
Nick Mathewson [Thu, 26 Jul 2012 14:16:47 +0000 (10:16 -0400)]
Remove unused variable; spotted by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:04:43 +0000 (10:04 -0400)]
Avoid more crashes/bad calls in unit tests; found by coverity
Nick Mathewson [Thu, 26 Jul 2012 13:59:47 +0000 (09:59 -0400)]
Add some missing null checks to unit tests; found by coverity
Nick Mathewson [Thu, 26 Jul 2012 13:53:20 +0000 (09:53 -0400)]
Fix resource leaks in the unit tests; found by coverity
Nick Mathewson [Thu, 26 Jul 2012 13:35:43 +0000 (09:35 -0400)]
Fix various check-after-dereference issues in unit tests: found by coverity
Nick Mathewson [Wed, 25 Jul 2012 20:18:33 +0000 (16:18 -0400)]
Set umask before calling mkstemp in unit tests. Found by coverity
Nick Mathewson [Wed, 25 Jul 2012 20:05:36 +0000 (16:05 -0400)]
Fix possible uninitialized read in dns regression tests. Found by coverity.
Nick Mathewson [Wed, 25 Jul 2012 19:59:50 +0000 (15:59 -0400)]
Remove deadcode in http regression tests. Found by coverity.
Nick Mathewson [Tue, 17 Jul 2012 15:08:25 +0000 (11:08 -0400)]
Fix a memory leak on error in evhttp_uriencode
If we ran out of memory in evhttp_uriencode when allocating the
output buffer, we would neglect to call evbuffer_free() on our
temporary buffer. Now we always free the temporary buffer.
Fixes sourceforge issue
3539887 . Thanks to Andrew Cox for reporting
this one.
Nick Mathewson [Mon, 16 Jul 2012 19:34:18 +0000 (15:34 -0400)]
Win32: avoid crash when waiting forever on zero fds.
Simon Liu [Thu, 14 Jun 2012 17:01:05 +0000 (01:01 +0800)]
Make event_pending() threadsafe.
(Commit message by Nick)
Nick Mathewson [Thu, 14 Jun 2012 17:25:10 +0000 (13:25 -0400)]
Add GCC annotations so that the vsprintf functions get checked properly
Nick Mathewson [Wed, 6 Jun 2012 21:10:11 +0000 (14:10 -0700)]
Merge pull request #57 from rosslagerwall/memleak
Fix a couple of memory leaks (found with Valgrind).
Ross Lagerwall [Wed, 6 Jun 2012 19:57:12 +0000 (21:57 +0200)]
Fix a couple of memory leaks (found with Valgrind).
Sebastian Hahn [Fri, 1 Jun 2012 03:23:29 +0000 (05:23 +0200)]
Correctly check for arc4random_buf
Apparently it's necssary to do an explicit comparison with NULL here.
This also gets rid of a compile warning
Greg Hazel [Tue, 29 May 2012 19:39:12 +0000 (12:39 -0700)]
check for arc4random_buf at runtime, on OS X
(Tweaked by nickm: Fix up the arcr4andom_buf OSX hack so that the
fallback case isn't compiled into the code when we have
arc4random_buf() and we are not on OSX. Also add a comment
explaining what's up.)
Nick Mathewson [Thu, 3 May 2012 20:34:29 +0000 (16:34 -0400)]
Bump version to 2.0.19-stable-dev
Nick Mathewson [Thu, 3 May 2012 16:33:36 +0000 (12:33 -0400)]
Increment version to 2.0.19-stable
Nick Mathewson [Thu, 3 May 2012 16:15:11 +0000 (12:15 -0400)]
Oops; fix the *right* windows compile issue
Nick Mathewson [Thu, 3 May 2012 16:05:52 +0000 (12:05 -0400)]
Fix win32 build issues: sleep, pid_t
Nick Mathewson [Wed, 2 May 2012 21:09:11 +0000 (17:09 -0400)]
Start changelog for 2.0.19-stable
Nick Mathewson [Wed, 2 May 2012 20:52:27 +0000 (16:52 -0400)]
Fix evdns build with threads disabled
The last evdns change apparently broke it, by using a "base"
variable that we were only declaring with threads turned on.
Nick Mathewson [Tue, 1 May 2012 23:52:55 +0000 (19:52 -0400)]
When retransmitting a timed-out DNS request, pick a fresh nameserver.
Otherwise, requests initially sent to a failing nameserver would
stay there indefinitely, even if other nameservers would work.
Fix for sourceforge bug
3518439
Nick Mathewson [Tue, 1 May 2012 23:52:49 +0000 (19:52 -0400)]
Make some evdns.c debug logs more verbose
Nick Mathewson [Tue, 1 May 2012 21:07:50 +0000 (17:07 -0400)]
dns-example.c can now take a resolv.conf file on the commandline
Nick Mathewson [Tue, 1 May 2012 01:45:43 +0000 (21:45 -0400)]
Merge remote-tracking branch 'github/20_active_prio_inv' into patches-2.0
Nick Mathewson [Thu, 12 Apr 2012 01:33:27 +0000 (21:33 -0400)]
Work-around a stupid gcov-breaking bug in OSX 10.6
This only affects the unit tests.
Fix found at http://rachelbythebay.com/w/2011/07/12/forkcrash/
(Backport from 2.1)
Mark Ellzey [Fri, 30 Mar 2012 19:08:40 +0000 (15:08 -0400)]
Fixed potential double-readcb execution with openssl bufferevents.
the function do_read() will call SSL_read(), and if successful, will
call _bufferevent_run_readcb() before returning to consider_reading().
consider_reading() will then check SSL_pending() to make sure all
pending data has also been read. If it does not, do_read() is called
again.
The issue with this is the possibility that the function that is
executed by _bufferevent_run_readcb() called
bufferevent_disable(ssl_bev, EV_READ) before the second do_read(); In
this case, the users read callback is executed a second time. This is
potentially bad for applications that expect the bufferevent to stay
disabled until further notice. (this is why running openssl bufferevents
without DEFER_CALLBACKS has always been troublesome).
Nick Mathewson [Mon, 30 Apr 2012 21:30:48 +0000 (17:30 -0400)]
If a higher-priority event becomes active, don't continue running events of the current priority.
Bug found by Ralph Castain.
Zack Weinberg [Fri, 27 Apr 2012 13:32:51 +0000 (09:32 -0400)]
Generate event-config.h with a single sed script
This approach should make the creation of the file more atomic, to
fix a bug reported by Dinh.
This patch has one change from Zack's original version: it avoids
$<, since Dave Hart tells me he thinks that's not so portable.
(commit message by nickm)
Nick Mathewson [Fri, 20 Apr 2012 15:51:13 +0000 (11:51 -0400)]
Merge branch '20_periodic_event_overload_v2' into patches-2.0
Nick Mathewson [Thu, 19 Apr 2012 04:25:12 +0000 (00:25 -0400)]
If time has jumped so we'd reschedule a periodic event in the past, schedule it for the future instead
Fixes an issue reported on libevent-users in the thread "a dead
looping bug when changing system time backward". Previously, if time
jumped forward 1 hour[*] and we had a one-second periodic timer event,
that event would get invoked 3600 times. That's almost certainly not
what anybody wants.
In a future version of Libevent, we should expose the amount of time
that the callbac kwould have been invoked somehow.
[*] Forward time jumps can happen with nonmonotonic clocks, or with
clocks that jump on suspend/resume. It can also happen from
Libevent's point of view if the user exits from event_base_loop() and
doesn't call it again for a while.
Nick Mathewson [Thu, 19 Apr 2012 22:15:12 +0000 (18:15 -0400)]
Refactor event_persist_closure: raise and extract some common logic
Nick Mathewson [Thu, 19 Apr 2012 15:11:05 +0000 (08:11 -0700)]
Merge pull request #52 from ghazel/20_evdns_probe
cancel the probe request when the server is freed, and ignore cancelled probe callbacks
Greg Hazel [Thu, 19 Apr 2012 04:41:48 +0000 (21:41 -0700)]
remove redundant DNS_ERR_CANCEL check, move comment
Greg Hazel [Thu, 19 Apr 2012 04:29:21 +0000 (21:29 -0700)]
cancel the probe request when the server is freed, and ignore cancelled probe callbacks
Nick Mathewson [Tue, 3 Apr 2012 22:31:08 +0000 (18:31 -0400)]
Backport: provide EVENT_LOG_* names, and deprecate _EVENT_LOG_*
This is a partial backport of
cb9da0bf and a backport of
c9635349 .
Because C doesn't like us to declare identifiers starting with an
underscore, Libevent 2.1 has renamed every such identifier. The
only change that affects a public API is that the _EVENT_LOG_*
macros have been renamed to start with EVENT_LOG instead. The old
names are still present, but deprecated.
I'm doing this backport because it represents the deprecation of a
Libevent 2.0 interface, and folks should have the opportunity to
write code that isn't deprecated and works with both 2.0 and 2.1.
Nick Mathewson [Tue, 3 Apr 2012 21:25:36 +0000 (17:25 -0400)]
Fix the website URL in the readme
Sebastian Hahn [Tue, 3 Apr 2012 03:31:20 +0000 (05:31 +0200)]
Configure with gcc older than 2.95
I don't know why people use such ancient gcc versions, but the fix seems
straightforward enough to maybe just do it.
Nick Mathewson [Mon, 2 Apr 2012 22:12:44 +0000 (18:12 -0400)]
Add missing ) to changelog; spotted by rransom