tor/src/common
Nick Mathewson 8905789170 Fix binary search on lists of 0 or 1 element.
The implementation we added has a tendency to crash with lists of 0 or
one element.  That can happen if we get a consensus vote, v2
consensus, consensus, or geoip file with 0 or 1 element.  There's a
DOS opportunity there that authorities could exploit against one
another, and which an evil v2 authority could exploit against anything
downloading v2 directory information..

This fix is minimalistic: It just adds a special-case for 0- and
1-element lists.  For 0.2.4 (the current alpha series) we'll want a
better patch.

This is bug 7191; it's a fix on 0.2.0.10-alpha.
2012-10-23 21:32:26 -04:00
..
Makefile.am Properly protect paths to sed, sha1sum, openssl 2012-02-10 20:12:03 +01:00
OpenBSD_malloc_Linux.c Fix compile warnings in openbsd malloc 2012-03-08 19:28:59 +01:00
address.c Fix bug 4530; check return val of tor_addr_lookup correctly 2011-12-02 15:37:24 -05:00
address.h Add a new "tor_sockaddr_to_str()" function 2011-05-13 10:41:18 -04:00
aes.c Doxygen documentation for about 100 things that didn't have any 2011-03-16 17:05:37 -04:00
aes.h Bump copyright statements to 2011 2011-01-03 11:50:39 -05:00
ciphers.inc fix a few typos, and give the bootstrap phase stuff a changelog entry. 2008-06-13 04:26:05 +00:00
compat.c tor_accept_socket() should take tor_addr_t for listener arg 2011-12-02 16:09:16 -05:00
compat.h Add __attribute__(format)s for our varargs printf/scanf wrappers 2012-05-30 12:14:38 -04:00
compat_libevent.c Detect failure from event_init() or event_base_new_with_config() 2011-11-14 17:53:45 -05:00
compat_libevent.h whitespace fixes 2011-05-30 15:21:06 -04:00
container.c Fix binary search on lists of 0 or 1 element. 2012-10-23 21:32:26 -04:00
container.h Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2 2011-05-15 20:09:10 -04:00
crypto.c Add a sha256 hmac function, with tests 2012-02-22 05:46:08 -08:00
crypto.h Add a sha256 hmac function, with tests 2012-02-22 05:46:08 -08:00
di_ops.c Another doc tweak on tor_memcmp: <b>b</b>, not <b>. 2011-05-15 19:56:05 -04:00
di_ops.h Fixup whitespace issues from 3122 commit 2011-05-15 20:06:36 -04:00
ht.h Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00
log.c Fix more clang format-nonliteral warnings (bug 5969) 2012-05-30 23:59:49 -04:00
memarea.c Comment out ancient asserts for bug 930; resolve an xxx021 2011-03-25 16:28:38 -04:00
memarea.h Bump copyright statements to 2011 2011-01-03 11:50:39 -05:00
mempool.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00
mempool.h Bump copyright statements to 2011 2011-01-03 11:50:39 -05:00
procmon.c Fix compile error in procmon.c 2011-06-01 11:11:12 -04:00
procmon.h Appease make check-spaces wrt procmon.h 2011-05-23 01:10:49 -04:00
sha256.c Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
strlcat.c r8860@totoro: nickm | 2006-10-03 14:48:33 -0400 2006-10-03 19:00:07 +00:00
strlcpy.c Remove svn $Id$s from our source, and remove tor --version --version. 2009-01-04 00:35:51 +00:00
torgzip.c Fix zlib macro brokenness on osx with zlib 1.2.4 and higher. 2011-10-26 07:30:11 -04:00
torgzip.h Bump copyright statements to 2011 2011-01-03 11:50:39 -05:00
torint.h Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2 2011-04-27 22:14:28 -04:00
torlog.h Fix some comments 2011-05-20 08:25:42 -07:00
tortls.c Disable TLS Session Tickets, which we were apparently getting for free 2012-10-19 00:54:51 -04:00
tortls.h Maintain separate server and client TLS contexts. 2011-10-26 14:13:55 +02:00
tortls_states.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
util.c Fix assertion failure in tor_timegm. 2012-09-11 13:13:07 -04:00
util.h Fix assertion failure in tor_timegm. 2012-09-11 13:13:07 -04:00
util_codedigest.c Include the *_sha1.i files in their own *_codedigest.c files. 2009-05-08 12:35:36 -04:00