Branch :
| Author | Commit | Date | CI | Message |
|---|---|---|---|---|
| 3c824bd3 | 2011-10-24 13:18:09 | Update copyright dates to 2011. | ||
| caf695af | 2011-07-05 14:55:09 | Fix up test_evutil_snprintf | ||
| 3203f88c | 2011-06-08 17:18:03 | Use the correct printf args when formatting size_t Based on a patch from Mansour Moufid | ||
| e8749823 | 2010-11-22 16:40:31 | Fix IRIX build. sa_family collides with a #define in sys/socket.h on IRIX. | ||
| f817bfa4 | 2010-10-27 17:31:52 | Fix some ints to evutil_socket_t; make tests pass on win64. | ||
| d49b5e33 | 2010-09-27 15:12:55 | Do not search outside of the system directory for windows DLLs Hardens against some attacks. | ||
| 1115366e | 2010-09-07 10:28:15 | Fix a few memory leaks in the tests | ||
| 743f8665 | 2010-08-23 11:48:46 | Honor NDEBUG; build without warnings with NDEBUG; make NDEBUG always-off in unit test code | ||
| ec347b92 | 2010-07-07 16:45:03 | Move event-config.h to include/event2 This change means that all required include files are in event2, and all files not in event2/* are optional. | ||
| 28f31a4f | 2010-08-06 16:36:23 | Fix unit tests with -DUSE_DEBUG enabled If you were to enable USE_DEBUG and slog through all 700+ MB of debugging output, you'd find that one of the unit tests failed, since it tested the debug logging code, but the string it expected and the string it logged differed by a tab vs 2 spaces. | ||
| e996b3d4 | 2010-08-05 15:51:16 | Make tests quieter on local dns resolver failure | ||
| 75701e89 | 2010-05-14 14:30:09 | Add some missing includes to fix Linux build again | ||
| 33bbbed9 | 2010-05-13 10:57:30 | Mark the event_err() functions as __attribute__((noreturn)) This attribute tells gcc (and anything else that understands gcc attributes) that the functions will never return control, and helps the optimizer a little. With luck, it will also tell less-than-full-program dataflow analysis tools that they don't need to worry about any code path that involves calling one of these functions and then returning. This patch also forces event_exit() to always exit, no matter what the user-supplied fatal_callback does. This means that the old unit tests for the event_err* functions don't work any more, since they assume it is safe to call event_err* if you've given it a bogus fatal_callback that doesn't exit. Instead, we have to make the unit tests fork before calling event_err(), and have the main unit test process wait for the event_err() test to exit with a sane exit code. On unix, that's trivial. On windows, let's not bother and just assume that event_err* works. | ||
| b1c79500 | 2010-04-23 14:42:25 | Make evdns logging threadsafe The old logging code was littered with places where we stored messages in static char[] fields. This is fine in a single-threaded program, but if you ever tried to log evdns messages from two threads at once, you'd hit a race. This patch also refactors evdns's debug_ntop function into a more useful evutil_sockaddr_port_format() function, with unit tests. | ||
| 899c1dcc | 2010-04-14 15:42:57 | Replace EVUTIL_CLOSESOCKET macro with a function The EVUTIL_CLOSESOCKET() macro required you to include unistd.h in your source for POSIX. We might as well turn it into a function: an extra function call is going to be cheap in comparison with the system call. We retain the EVUTIL_CLOSESOCKET() macro as an alias for the new evutil_closesocket() function. (commit message from email by Nick and Sebastian) | ||
| 17efc1cd | 2010-03-04 01:25:51 | Update all our copyright notices to say "2010" | ||
| e5bbd40a | 2010-02-18 17:41:15 | Clean up formatting: use tabs, not 8-spaces, to indent. | ||
| 48a29b68 | 2010-02-18 01:43:37 | Add a unit test for secure rng. Mostly, this is just to make sure our arc4random_buf() implementation isn't dumb. | ||
| 60742d58 | 2010-02-03 17:01:45 | Add the rest of the integer limits, and add a test for them. | ||
| 8d4aaf90 | 2010-01-20 12:56:54 | Don't use a bind address for nameservers on loopback If the user sets a bind address to use for nameservers, and a nameserver happens to be on 127.0.0.1, the nameserver will generally fail. This patch alters this behavior so that the bind address is only applied when the nameserver is on a non-loopback address. | ||
| 625a261a | 2009-11-17 02:40:14 | OpenBSD demands that sys/types.h be included before sys/socket.h svn:r1539 | ||
| 86f57420 | 2009-11-16 22:25:46 | Add two implementations of getaddrinfo: one blocking and one nonblocking. The entry points are evutil_getaddrinfo and evdns_getaddrinfo respectively. There are fairly extensive unit tests. I believe this code conforms to RFC3493 pretty closely, but there are probably more issues. It should get tested on more platforms. This code means we can dump the well-intentioned but weirdly-implemented bufferevent_evdns and evutil_resolve code. svn:r1537 | ||
| c79a45e0 | 2009-11-14 21:54:30 | Fix a couple of event_debug calls. svn:r1527 | ||
| 784b8773 | 2009-11-06 21:46:57 | We do not work any more without an event-config.h; stop pretending that it is meaningful to check for HAVE_CONFIG_H svn:r1516 | ||
| 0b9eb1bf | 2009-11-03 20:40:48 | Add a bufferevent function to resolve a name then connect to it. This function, bufferevent_socket_connect_hostname() can either use evdns to do the resolve, or use a new function (evutil_resolve) that uses getaddrinfo or gethostbyname, like http.c does now. This function is meant to eventually replace the hostname resolution mess in http.c. svn:r1496 | ||
| 8283b2f0 | 2009-11-02 19:30:25 | Fix a major parenthesis bug in EVUTIL_UPCAST. Fortunately, this didn't hurt anything previously, since we had no actual users of the macro where the offset of the base type wasn't 0. svn:r1488 | ||
| c70c2593 | 2009-10-29 16:35:09 | Unit test for strlcpy svn:r1474 | ||
| e9098203 | 2009-10-27 18:25:19 | Fix from Chris Davis: get error-logging to be happy on win32. svn:r1473 | ||
| a8267663 | 2009-10-26 19:59:51 | API to replace all calls to exit() with a user-supplied fatal-error handler. Also, add unit tests for logging. svn:r1462 | ||
| 62511629 | 2009-07-30 17:00:46 | Add unit test for parsing addresses with bad ports. svn:r1389 | ||
| 72ea534f | 2009-07-28 19:41:57 | Export evutil_str[n]casecmp as evutil_ascii_str[n]casecmp. svn:r1387 | ||
| dc031990 | 2009-07-20 14:55:07 | Add strcasecmp tests to improve evutil coverage a bit svn:r1364 | ||
| df0617f2 | 2009-04-23 00:21:23 | Use signal.h, not sys/signal.h. This is patch 2673214 from mmadia. It is correct, since we unconditionally include signal.h in many other places, and only sometimes include sys/signal.h. It is necessary to compile on Haiku, I'm told. svn:r1228 | ||
| acaf65c3 | 2009-02-11 17:23:32 | Make evutil_parse_sockaddr_port give a useful socket-length output. svn:r1118 | ||
| ff7a5e12 | 2009-01-31 19:32:20 | slightly more coverage for evutil. svn:r1086 | ||
| 241690b2 | 2009-01-30 17:43:59 | Move util tests to regress_util.c svn:r1075 | ||
| a8203b34 | 2009-01-29 23:19:57 | Refactor unit tests using my spiffy new "tinytest" framework. The big win here is that we can get process-level isolation. This has been tested to work okay on at least Linux and Win32. Only the tests in regress.c have been converted wrapped in the new wrapper functions; the others are still on the old system. svn:r1073 | ||
| b85b710c | 2009-01-27 22:34:36 | Update copyright statements to reflect the facts that: a) this is 2009 b) niels and nick have been comaintainers for a while c) saying "all rights reserved" when you then go on to explicitly disclaim some rights is sheer cargo-cultism. svn:r1065 | ||
| 8889a770 | 2009-01-27 22:30:46 | Replace all use of config.h with event-config.h. svn:r1064 | ||
| 9935d5b0 | 2009-01-13 21:39:32 | Fix win32 compilation. Surprisingly, unit tests pass too. svn:r1002 | ||
| 980bcd68 | 2009-01-02 21:21:58 | Work better with platforms that do not have ipv6 structures, or that do not have sin_len fields, etc. svn:r986 | ||
| cfbd1680 | 2009-01-02 20:46:26 | Add another function to parse the common address:port combination formats into a sockaddr. svn:r984 | ||
| 0d9d5cfe | 2009-01-02 20:46:12 | New functions in evutil to clone inet_pton and inet_ntop, with tests. Adapted from Tor code. svn:r983 |