tor/changes/ticket40437
David Goulet 4db610d6d9 state: Fix segfault on malformed file
Having no TotalBuildTimes along a positive CircuitBuildAbandonedCount
count lead to a segfault. We check for that condition and then BUG + log
warn if that is the case.

It should never happened in theory but if someone modified their state
file, it can lead to this problem so instead of segfaulting, warn.

Fixes #40437

Signed-off-by: David Goulet <dgoulet@torproject.org>
2023-01-10 09:25:50 -05:00

5 lines
209 B
Plaintext

o Minor bugfixes (state file):
- Avoid a segfault if the state file doesn't contains TotalBuildTimes along
CircuitBuildAbandonedCount being above 0. Fixes bug 40437; bugfix on
0.3.5.1-alpha.