tor/src/rust/protover
Nick Mathewson f69510ba4b Rust protover compat: forbid more than MAX_VERSIONS_TO_EXPAND in a range
Also correct MAX_VERSIONS_TO_EXPAND to match the C.

NOTE that this patch leads to incorrect behavior: the C code allows
huge ranges; it just doesn't allow votes on them (currently).  For
full compatibility, we'll need to make the rust code store ranges as
ranges natively, possibly using something like the range_map crate.

Still, this patch is smaller than a "proper" fix.

Fixes TROVE-2018-003.
2018-02-15 19:07:25 -05:00
..
tests Add missing copyright/license statements on all .rs files 2017-10-27 10:02:08 -04:00
Cargo.toml use tor allocator for string allocation in rust 2017-10-27 10:02:08 -04:00
ffi.rs rust: Replace two unwrap()s in FFI code with unwrap_or()s. 2018-02-10 01:21:31 +00:00
lib.rs protover: Fix memleak in Rust impl of protover_compute_for_old_tor. 2018-02-07 22:51:58 +00:00
protover.rs Rust protover compat: forbid more than MAX_VERSIONS_TO_EXPAND in a range 2018-02-15 19:07:25 -05:00