Avoid integer underflow in tor_version_compare.
commit194e31057fbf07d6bdf4b62d26e1a9db334e5f1c
authorNick Mathewson <nickm@torproject.org>
Tue, 7 Feb 2017 15:58:02 +0000 (7 10:58 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 14 Feb 2017 21:10:27 +0000 (14 16:10 -0500)
tree5dfedea08b7fb6b4bc0a0e2cae42e3f0afb1f77f
parent635c5a8a92c8066412645b291817eadcc82d8f8f
Avoid integer underflow in tor_version_compare.

Fix for TROVE-2017-001 and bug 21278.

(Note: Instead of handling signed ints "correctly", we keep the old
behavior, except for the part where we would crash with -ftrapv.)
changes/trove-2017-001.2 [new file with mode: 0644]
src/or/routerparse.c