Fix a framing bug when reading versions from a versions cell.
commitb9037521c6ba333178c3f3197c39be360aba229c
authorNick Mathewson <nickm@torproject.org>
Mon, 11 Mar 2013 16:29:28 +0000 (11 12:29 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 11 Mar 2013 16:29:28 +0000 (11 12:29 -0400)
treee24dd7977917516d5671a540a931a477da23210f
parent0196647970a91d2bdb052f38b3749dd0e99348e4
Fix a framing bug when reading versions from a versions cell.

Our ++ should have been += 2.  This means that we'd accept version
numbers even when they started at an odd position.

This bug should be harmless in practice for so long as every version
number we allow begins with a 0 byte, but if we ever have a version
number starting with 1, 2, 3, or 4, there will be trouble here.

Fix for bug 8059, reported pseudonymously. Bugfix on 0.2.0.10-alpha
-- specifically, commit 6fcda529, where during development I
increased the width of a version to 16 bits without changing the
loop step.
changes/bug8059 [new file with mode: 0644]
src/or/channeltls.c