tor/changes/bug10313
Nick Mathewson c56bb30044 Remove a check in channeltls.c that could never fail.
We were checking whether a 8-bit length field had overflowed a
503-byte buffer. Unless somebody has found a way to store "504" in a
single byte, it seems unlikely.

Fix for 10313 and 9980. Based on a pach by Jared L Wong. First found
by David Fifield with STACK.
2013-12-09 11:02:34 -05:00

9 lines
346 B
Plaintext

o Minor bugfixes:
- Fixed an erroneous pointer comparison that would have allowed
compilers to remove a bounds check in channeltls.c. The fix
was to remove the check entirely, since it was impossible for
the code to overflow the bounds. Noticed by Jared L
Wong. Fixes bug 10313 and 9980. Bugfix on 0.2.0.10-alpha.