tor/src/or
Sebastian Hahn 026e7987ad Sanity-check consensus param values
We need to make sure that the worst thing that a weird consensus param
can do to us is to break our Tor (and only if the other Tors are
reliably broken in the same way) so that the majority of directory
authorities can't pull any attacks that are worse than the DoS that
they can trigger by simply shutting down.

One of these worse things was the cbtnummodes parameter, which could
lead to heap corruption on some systems if the value was sufficiently
large.

This commit fixes this particular issue and also introduces sanity
checking for all consensus parameters.
2011-01-15 19:42:17 +01:00
..
buffers.c Fix another instance of "128" in buffers.c. More bug2330. 2011-01-15 10:25:58 -05:00
buffers.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
circuitbuild.c Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
circuitbuild.h Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
circuitlist.c Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
circuitlist.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
circuituse.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00
circuituse.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
command.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:58:59 -05:00
command.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
config_codedigest.c fix codestyle issues 2009-05-24 02:42:37 +02:00
config.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-15 12:02:55 -05:00
config.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
connection_edge.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-07 22:04:40 -05:00
connection_edge.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
connection_or.c Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
connection_or.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
connection.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00
connection.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
control.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00
control.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
cpuworker.c Merge remote branch 'sebastian/bug2314' into maint-0.2.2 2011-01-03 12:47:14 -05:00
cpuworker.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
directory.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00
directory.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
dirserv.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00
dirserv.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
dirvote.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00
dirvote.h Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
dns.c Add missing parens to evdns_base_resolve_* macros while I am at it 2011-01-09 19:05:06 -05:00
dns.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
dnsserv.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-15 13:10:14 -05:00
dnsserv.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
eventdns_tor.h Bump copyright statements to 2011 2011-01-03 11:50:39 -05:00
eventdns.c Fix compile wanrings revealed by gcc 4.5 on mingw 2010-12-27 09:47:41 +01:00
eventdns.h Fix compile warnings on Snow Leopard 2009-09-01 18:36:27 +02:00
geoip.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00
geoip.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
hibernate.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00
hibernate.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
main.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00
main.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
Makefile.am Fix 'make distcheck' 2010-08-03 00:48:59 +02:00
microdesc.c Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
microdesc.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
networkstatus.c Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
networkstatus.h Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
ntmain.c Merge remote branch 'sebastian/bug2314' into maint-0.2.2 2011-01-03 12:47:14 -05:00
ntmain.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
onion.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-15 12:02:55 -05:00
onion.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
or.h Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
policies.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00
policies.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
reasons.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00
reasons.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
relay.c Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
relay.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
rendclient.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-15 12:02:55 -05:00
rendclient.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
rendcommon.c Fix a heap overflow found by debuger, and make it harder to make that mistake again 2011-01-15 11:49:25 -05:00
rendcommon.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
rendmid.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:58:59 -05:00
rendmid.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
rendservice.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-15 12:02:55 -05:00
rendservice.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
rephist.c Fix a function formatting warning in rephist.c 2011-01-03 11:59:47 -05:00
rephist.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
router.c Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
router.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
routerlist.c Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
routerlist.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
routerparse.c Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
routerparse.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
tor_main.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00