Files
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
..
2011-01-03 11:50:39 -05:00
2011-05-30 15:21:06 -04:00
2011-01-03 11:50:39 -05:00
2011-01-03 11:50:39 -05:00
2011-06-01 11:11:12 -04:00
…
2011-01-03 11:50:39 -05:00
2011-05-20 08:25:42 -07:00
2012-09-11 13:13:07 -04:00
2012-09-11 13:13:07 -04:00