]> git.ipfire.org Git - thirdparty/tor.git/commit
Fix some 'impossible' overflow bugs in byte counting
authorNick Mathewson <nickm@torproject.org>
Fri, 25 Mar 2011 20:45:25 +0000 (16:45 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 25 Mar 2011 22:32:28 +0000 (18:32 -0400)
commitdddd333a80ee2e9bb731cb3c127ace3741d49673
tree76d0dffa86ea884b1361fc646378485dcfc3ecd8
parent6a5b94de6c51478ca638ec03c40a6d3c27f2d674
Fix some 'impossible' overflow bugs in byte counting

The first was genuinely impossible, I think: it could only happen
when the amount we read differed from the amount we wanted to read
by more than INT_MAX.

The second is just very unlikely: it would give incorrect results to
the controller if you somehow wrote or read more than 4GB on one
edge conn in one second.  That one is a bugfix on 0.1.2.8-beta.
changes/count_overflow [new file with mode: 0644]
src/or/connection.c