]> git.ipfire.org Git - thirdparty/tor.git/commit
Fix a nigh-impossible overflow in cpuworker.c
authorNick Mathewson <nickm@torproject.org>
Mon, 11 Feb 2013 21:40:48 +0000 (16:40 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 11 Feb 2013 21:46:38 +0000 (16:46 -0500)
commit719940df2bdfbd0f5ee02a9ca404f345d2fc49e8
tree9e0a1eb4df791ee2265f413877f7d036493a8507
parent9b2bb901d7c306fd6ca28de527e86379470db89a
Fix a nigh-impossible overflow in cpuworker.c

When we compute the estimated microseconds we need to handle our
pending onionskins, we could (in principle) overflow a uint32_t if
we ever had 4 million pending onionskins before we had any data
about how onionskins take.  Nevertheless, let's compute it properly.

Fixes bug 8210; bugfix on 0.2.4.10. Found by coverity; this is CID
980651.
changes/bug8210 [new file with mode: 0644]
src/or/cpuworker.c