mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
o Minor bugfixes:
|
||||
- Fix an impossible-to-trigger integer overflow when
|
||||
estimating how long out onionskin queue would take. (This overflow
|
||||
would require us to accept 4 million onionskins before processing
|
||||
100 of them.) Fixes bug 8210; bugfix on 0.2.4.10-alpha.
|
||||
|
||||
Reference in New Issue
Block a user