summaryrefslogtreecommitdiff
path: root/src/trace
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2018-03-21 02:22:54 +0000
committerNick Mathewson <nickm@torproject.org>2018-05-22 12:28:33 -0400
commit701c2b69f52cb4db46aa7455904e518b35fafc1a (patch)
tree0d56c3a77a9309f554b11f1df15b4a09a381e8a0 /src/trace
parent056be68b1b5a727bb6cb26d98f37bfa131f76701 (diff)
downloadtor-701c2b69f52cb4db46aa7455904e518b35fafc1a.tar.gz
tor-701c2b69f52cb4db46aa7455904e518b35fafc1a.zip
rust: Mirror TROVE-2018-005 fix in Rust protover implementation.
* REFACTORS `UnvalidatedProtoEntry::from_str` to place the bulk of the splitting/parsing logic in to a new `UnvalidatedProtoEntry::parse_protocol_and_version_str()` method (so that both `from_str()` and `from_str_any_len()` can call it.) * ADD a new `UnvalidatedProtoEntry::from_str_any_len()` method in order to maintain compatibility with consensus methods older than 29. * ADD a limit on the number of characters in a protocol name. * FIXES part of #25517: https://bugs.torproject.org/25517
Diffstat (limited to 'src/trace')
0 files changed, 0 insertions, 0 deletions