Avoid undefined behaviour when parsing HS protocol versions

Fixes bug 6827; bugfix on c58675ca72
(when the v2 HS desc parser was implemented).

Found by asn.
This commit is contained in:
Robert Ransom
2012-09-13 07:39:39 -04:00
parent 45439bfced
commit 0a6480cdd0
3 changed files with 16 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
o Minor bugfixes:
- Avoid undefined behaviour when parsing the list of supported
rendezvous/introduction protocols in a hidden service
descriptor. Previously, Tor would have confused (as-yet-unused)
protocol version numbers greater than 32 with lower ones on many
platforms. Bugfix on 0.2.0.10-alpha; found by George Kadianakis.