Log

Author Commit Date CI Message
Sebastian Hahn b0ff7eb5 2011-04-10T14:03:39 Add an assert to appease clang's static analyzer It got confused because in EVLOCK_ASSERT_LOCKED(lock) there is an if (lock) check.
Sebastian Hahn 5208544e 2011-03-14T04:24:33 Fix possible NULL-deref in evdns_cancel_request The clang static analyzer complained that base might be dereferenced without being set, but this patch should fix another dereference issue.
Sebastian Hahn 12311ff4 2011-03-14T04:13:55 Add a forgotten NULL check to evhttp_parse_headers Issue detected by the clang static analyzer
Sebastian Hahn ad9ff583 2011-04-10T17:23:11 Fix compilation under LLVM/clang with --enable-gcc-warnings When compiling using clang (2.9 or lower) do not enable -Wnormalized=id or -Woverride-init when --enable-gcc-warnings or --enable-gcc-warnings-advisory is set as these options are unsupported. This commit is based on a patch for Tor (git commit 56bdc844ba68ac0911efc7ad3398f1eafeaaac76 by Steven Murdoch), Copyright (c) 2007-2011, The Tor Project, Inc.
Nick Mathewson b4f89f00 2011-04-21T17:33:13 Fix a memory leak on win32 socket->event map. This would lose some memory every time an event_base was freed on win32. Found by Dimitre Piskyulev.
Nick Mathewson 364291e9 2011-04-21T17:11:41 Handle calloc failure in evdns. (Found by Dave Hart)
Nick Mathewson dde3b739 2011-04-21T13:30:22 Merge branch '20_evdns_circular_list_patch' into patches-2.0
Nick Mathewson 00e91b3c 2011-04-20T13:27:31 Fix a crash bug in evdns server circular list code Really, this should use a circleq. That's a change for 2.1, though.
Nick Mathewson 2e9f6655 2011-04-14T14:15:13 Fix a couple of memory leaks in samples/http-server.c. Found by Dave Hart.
Nick Mathewson 3417f680 2011-04-13T11:20:30 Avoid a free(NULL) if out-of-memory in evdns_getaddrinfo. Found by Dave Hart
Nick Mathewson 1a21d7b8 2011-04-05T17:21:12 Fix the check for multicast or broadcast addresses in evutil_check_interfaces First of all, it is totally okay to have an address end with .255, depending on what your netmask is, so we shouldn't reject a local address if it ends with .255. Second, our check for ending with .255 was broken. So was our check for class-d addresses. Found by Dave Hart.
Nick Mathewson fc7f34bd 2011-04-05T17:17:51 Merge branch '20_socktype_protocol_nomem' into patches-2.0
Nick Mathewson 637d17a1 2011-04-05T16:32:39 Check for allocation failures in apply_socktype_protocol_hack
Tomash Brechko 0d6622e2 2011-03-31T19:11:10 Fix the case when failed evhttp_make_request() leaved request in the queue.
Tomash Brechko 218cf197 2011-03-24T15:52:34 Fix subtle recursion in evhttp_connection_cb_cleanup().
Tomash Brechko 272823f8 2011-03-23T12:05:33 Reset outgoing connection when read data in idle state. Imagine server side is buggy and miscalculates Content-Length: in the reply. Data arriving in idle state shouldn't make us crash, instead we can just reset the connection.
Nick Mathewson c6213591 2011-03-23T16:32:42 Add comment to configure.in to explain gc-sections test logic (Basically, we need access to conftest.err for the test to work properly.)
Dave Hart 6bb23e4b 2011-03-23T16:22:57 Fix for --gc-sections on NetBSD This patch fixes http://bugs.ntp.org/1844, works around http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=40401, by improving the test for support of --gc-sections to run a program which reads a file using stdio built with --gc-sections, instead of simply link the binary. This catches the buggy linker as the garbage collection removes a tag NetBSD uses to distinguish its own elf binaries from Linux ones, causing it to treat conftest as a Linux binary and run it with the wrong syscall table.
Dave Hart b5a1f9f7 2011-03-23T16:22:24 Fix make distcheck & installation of libevent 1 headers libevent/Makefile.am corrects a typo (thanks to Harlan for spotting it once we realized make distcheck was broken when building the libevent tearoff). The result was the include/ev*.h were not distributed nor installed whether or not --disable-libevent-install was used. This was introduced with the final round (3/3) of --disable-libevent-install patch from me.
Christophe Fillot 4b8f02f1 2011-03-12T12:08:19 Fix incorrect assertions and possible use-after-free in evrpc_free() Original description: The following patch fixes incorrect assertions in evrpc_free(): evrpc_unregister_rpc() and evrpc_remove_hook() return 0 for success. Also, in evrpc_unregister_rpc(), it is better to free RPC structure at the end: evrpc_free() uses rpc->uri as "name" parameter when calling evrpc_unregister_rpc(), then rpc->uri is freed, but we have "registered_uri = evrpc_construct_uri(name)". So at this time "name" is invalid.
Nick Mathewson 5209fadf 2011-03-07T22:59:19 Disable lazy gettimeofday/clock_gettime comparison for now
Nick Mathewson 9193dc4e 2011-03-07T22:45:10 Merge branch '20_timescale' into patches-2.0
Nick Mathewson c8baac90 2011-03-07T21:55:47 Followup for Tomash Brechko's http patch This patch makes bufferevent_disable_hard() non-public, and adds a comment about what it's for and why it's used.
Tomash Brechko 5dc56628 2011-02-24T12:30:40 Workaround libevent bug https://sourceforge.net/tracker/index.php?func=detail&aid=3078187&group_id=50884&atid=461324 The problem is that bufferevent_disable() doesn't disable EV_WRITE when 'connecting' flag is set. However from evhttp_connection_reset() we want to disable EV_WRITE for sure (we are closing the socket next). So we add bufferevent_disable_hard(), which acts like bufferevent_disable(), but resets 'connecting' flag before the call to the actual handler. TODO: bufferevent_disable_hard() shouldn't be public, remove it from event2/bufferevent.h.
Nick Mathewson a459ef70 2011-03-03T15:34:22 Have event_base_gettimeofday_cached() always return wall-clock time Based on code by Dave Hart
Dave Hart ab008c7d 2011-03-03T12:57:17 Make --no-libevent-install apply to event1 headers too
Dave Hart b5ab9555 2011-02-25T10:35:12 Make --no-libevent-install apply to headers too
Sebastian Hahn 3f79a3a0 2011-02-23T09:19:08 Continue AM_CFLAGS to AM_CPPFLAGS correction 9c469db300e1b270a93c6b04c1709ac0f7751136 had started with the conversion but left out another instance of incorrectly used AM_CFLAGS. Dave Hart provided the suggestion for this fix.
Nick Mathewson 5dc200b7 2011-02-22T18:53:55 Merge branch '20_uri_nonconformant' into patches-2.0
Nick Mathewson 2fba21d8 2011-02-22T16:20:42 Make -ffunction-sections off-by-default in 2.0.x I don't see how this can burn anybody, but I don't want to take chances: new build options are something that should be done in an alpha. To turn -ffunction-sections on, pass --enable-function-sections to configure.
Nick Mathewson 7d913f4c 2011-02-22T16:14:16 Remove nonfunctional enable_libevent_(install|regress)_def variables
Nick Mathewson 15b2408c 2011-02-22T16:13:49 Use $(), not @@, for LIBEVENT_GC_SECTIONS
Nick Mathewson f95bafb6 2011-02-22T00:34:49 Be explicit about how long event loops run in event.h documentation
Nick Mathewson 039b9bd0 2011-02-22T00:31:56 Use %s with printf in test.sh
Dave Hart 9c469db3 2011-02-13T02:27:42 Correct an AM_CFLAGS to an AM_CPPFLAGS in test/Makefile.am
Dave Hart 49e9bb7f 2011-02-13T02:05:04 Add configure options to disable installation, regression tests The main reason for disabling installation is if you're building libevent as a subpackage for embedding: you want to have your main package's "make all" build libevent, but you don't want your main package's "make install" to install libevent.
Harlan Stenn 0b334799 2011-02-13T02:00:10 Add -D_OSF_SOURCE to fix hpux builds
Dave Hart 0965c563 2011-02-13T01:50:40 Use the gcc -ffunction-segments feature to allow gc when linking with static libevent
Harlan Stenn af08a940 2011-02-13T01:42:58 Check for getservbyname even if not on win32.
Harlan Stenn 833e5e9f 2011-02-13T01:39:10 Fix autoconf bracket issues; make check for getaddrinfo include netdb.h
Harlan Stenn a317c068 2011-02-13T01:34:40 Skip check for zlib if we have no zlib.h
Harlan Stenn 05a2c22f 2011-02-13T01:30:37 Make test-eof fail with a timeout if we never get an eof. Previously, it would just wait forever.
Nick Mathewson 4eb281c8 2011-02-13T01:29:54 FIX: comment internal headers used in sample code.
Nick Mathewson eb692be9 2011-02-13T01:27:06 NM: Fix sample/http-server ipv6 fixes Fix 1: Use #include "../xyz" rather than #include <../xyz> Fix 2: util-internal.h includes ipv6-internal.h, which in turn defines a replacement AF_INET6 on platforms that don't have it. As such, the AF_INET6 checks shouldn't be needed. (right?)
Harlan Stenn bbf55150 2011-02-13T01:25:33 Include util-internal.h as needed to build on platforms with no sockaddr_storage
Harlan Stenn 10c834c4 2011-02-13T01:22:25 Include arpa/inet.h as needed on HPUX
Nick Mathewson 63a715e1 2011-02-21T23:25:13 Correctly detect and stop non-chunked http requests when the body is too long Based on analysis and code from Bas Verhoeven and from Constantine Verutin.
Nick Mathewson deb2f738 2011-02-18T16:17:22 fix spelling mistake in whatsnew-2.0.txt
Nick Mathewson f6659246 2011-02-15T11:33:40 Correct evhttp_del_accept_socket documentation on whether socket is closed Thanks to Constantine Verutin for pointing this out.
Nick Mathewson 0c9be768 2011-02-13T02:51:27 Merge branch '20_evport_pollhup' into patches-2.0
Nick Mathewson 926f8165 2011-02-13T00:54:21 Clarify event_set_mem_functions doc
Nick Mathewson 95060b54 2011-02-13T00:41:22 Make URI parser able to tolerate nonconformant URIs. If the EVHTTP_URI_NONCONFORMANT flag is passed in (which it is when parsing URIs we get over the wire), then we relax our checks a lot. Specifically, we do nothing to check for correct characters in the path, query, and fragment parts of such a URI. We could do much more here: we could relax our hostname requirements, deal with spaces differently/better, trap some errors but not others, etc. But this should solve the worst user-agent compatibility issues for now; the other issues can wait for a later release.
Nick Mathewson f7361980 2011-02-08T22:24:06 Fix a type error in our (unused) arc4random_stir()
Sebastian Hahn f663112f 2010-10-14T20:15:04 Fix warnings about AC_LANG_PROGRAM usage Autoconf 2.68 introduced some new warnings that were triggered during autogen.sh. Fix those.
Dave Hart b4f89b60 2011-02-01T01:15:48 Fix test.sh output on solaris Solaris echo -n doesn't omit newlines, but printf omits newlines in more places.
Nick Mathewson c1260b0e 2011-01-31T17:36:49 Do not check for gethostbyname_r versions if we have getaddrinfo
Nick Mathewson 3c8f4e75 2011-01-31T16:44:06 Add compile-time check for AF_UNSPEC==PF_UNSPEC
Nick Mathewson 6092f126 2011-01-31T16:37:27 Fix http unit test on non-windows platforms without getaddrinfo
Nick Mathewson cb921139 2011-01-31T16:32:05 Build on systems without AI_PASSIVE
Nick Mathewson 713c254d 2011-01-24T18:55:10 Try to build correctly on platforms with no IPv6 support
Nick Mathewson 9184563e 2011-01-24T18:29:20 Build correctly on platforms without sockaddr_storage
Nick Mathewson 453317b2 2011-01-24T18:22:32 Fall back to sscanf if we have no other way to implement strtoll
Nick Mathewson 32677036 2011-01-24T17:42:23 Make --enable-gcc-warnings a no-op if not using gcc
Nick Mathewson 0c0ec0be 2011-01-12T20:28:47 Correctly free selectop fields when select_resize fails in select_init
Nick Mathewson 83e805a4 2011-01-07T13:18:09 Handle resize failures in the select backend better.
Jardel Weyrich 3f8d22a1 2010-12-18T02:40:22 Use event_err() only if the failure is truly unrecoverable.
Jardel Weyrich 666b0966 2010-12-18T01:07:27 Detect and handle more allocation failures.
Trond Norbye 0144886e 2011-01-02T10:17:15 Check for POLLERR, POLLHUP and POLLNVAL for Solaris event ports
Nick Mathewson cb8059d2 2011-01-01T21:37:21 Fix compilation on Windows with NDEBUG Dongsheng Song reports that when building on windows with NDEBUG, you run into an attempt to do EVUTIL_ASSERT(x) where x is a bitfield, which turns into _EVUTIL_NIL_CONDITION(x), which takes sizeof(x), which is illegal. This patch fixes _EVUTIL_NIL_CONDITION to work on bitfields too.
Nick Mathewson b42ce4bf 2011-01-01T21:17:31 Fix evport handling of POLLHUP and POLLERR In other backends, they make _all_ events trigger; with evport they previously triggered nothing. Found by Phua Keat Yee.
Nick Mathewson 05f0195d 2010-12-16T12:57:23 Bump version to 2.0.10-stable-dev
Nick Mathewson 5a12d835 2010-12-15T14:31:08 Add changelog for 2.0.10-stable
Nick Mathewson d34d21d9 2010-12-15T14:30:04 Add more acknowledgements to the readme for 2.0.10-stable
Nick Mathewson bffc411e 2010-12-15T14:29:50 Set the version to 2.0.10-stable
Evan Jones b63ab177 2010-12-06T14:17:44 EVUTIL_ASSERT: Use sizeof() to avoid "unused variable" warnings.
Nick Mathewson 18adc3f0 2010-12-09T12:17:58 Add stuff to whatsnew based on reading include changes since August.
Nick Mathewson 57689c44 2010-12-09T12:17:11 Document that the cpu_hint is only used on Windows with IOCP for now
Nick Mathewson bb0d2b4e 2010-12-09T11:47:54 Consistentize tabs
Nick Mathewson 22f4af65 2010-12-09T11:43:12 Remove end-of-line whitespace
Nick Mathewson 74f75758 2010-12-09T11:40:35 tweak readme, whatsnew
Nick Mathewson 7011f9ec 2010-12-07T11:45:14 Fix a signed/unsigned comparison in the last commit
Constantine Verutin d23839fc 2010-12-07T11:43:52 Reject overlong http requests early when Expect:100-continue is set
Evan Jones c0bf63ce 2010-12-02T14:13:33 tests: Use relative includes ("") instead of system includes (<>)
Evan Jones 4f332091 2010-12-02T14:09:52 tests: Use new event2 headers instead of old compatibility headers.
Evan Jones fbe64f21 2010-12-02T10:26:12 Use relative includes instead of system includes consistently.
Evan Jones ef5e65a4 2010-12-02T10:27:06 bufferevent-internal.h: Use the new event2/util.h header, not evutil.h
Nick Mathewson 5beeec9d 2010-12-01T21:28:03 Correctly notify the main thread when activating an event from a subthread
Kelly Brock 2599b2d5 2010-11-30T11:34:26 Minor fix for IOCP shutdown handling fix Call setsockopt() on the actual new socket, not on as->s, which was set to INVALID_SOCKET.
Nick Mathewson 2b0b06d7 2010-11-30T02:19:25 Increment version to 2.0.9-rc-dev
Nick Mathewson ce46db99 2010-11-30T01:21:00 Give the correct date for 2.0.9-rc in the changelog
Nick Mathewson 9ce4cc4e 2010-11-23T11:17:24 Increment version to 2.0.9-rc
Nick Mathewson 79957b89 2010-11-23T11:17:06 Bump VERSION_INFO to 5:0:0
Nick Mathewson 0c54f176 2010-11-23T11:08:30 Changelog and acknowledgments for 2.0.9-rc
Nick Mathewson 13fd242d 2010-11-30T00:53:16 Fix win32 build of http-server.c with unicode enabled
Nick Mathewson 04861d5e 2010-11-30T00:05:54 Correctly detect timeouts during http connects
Nick Mathewson 0faaa395 2010-11-29T22:44:18 Try to fix an assertion failure related to close detection f700566c removed a line from evhttp_connection_stop_detectclose that cleared the EVHTTP_CON_CLOSEDETECT flag. I think this was an accident, and suspect that it may be the cause of bug 3069555.
Nick Mathewson 29f7623c 2010-11-29T22:14:54 Possible crash fix when freeing an underlying bufferevent of an openssl bufferevent
Nick Mathewson 0c4d5459 2010-11-29T21:56:23 Merge remote branch 'chrisd/http_continue'
Christopher Davis fa9305f8 2010-11-29T18:25:04 Preliminary support for Continue expectation in evhttp.
Nick Mathewson 18d03276 2010-11-29T20:39:09 make http-server example code build on win32