mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
37953497d8
This would be undefined behavior if it happened. (It can't actually happen as we're using round_to_power_of_2, since we would have to be trying to allocate exabytes of data.) While we're at it, fix the behavior of round_to_power_of_2(0), and document the function better. Fix for bug 6831.
5 lines
212 B
Plaintext
5 lines
212 B
Plaintext
o Minor bugfixes:
|
|
- Fix round_to_power_of_2 so it doesn't invoke undefined behavior
|
|
with large values. This was untriggered, but nevertheless incorrect.
|
|
Fixes bug 6831; bugfix on 0.2.0.1-alpha.
|