mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
09cac24373
Consistently check for overflow in round_*_to_next_multiple_of. Check all round_*_to_next_multiple_of functions with expected values. Check all round_*_to_next_multiple_of functions with maximal values. Related to HS stats in #13192.
12 lines
541 B
Plaintext
12 lines
541 B
Plaintext
o Minor bugfixes:
|
|
- Handle edge cases in the laplace functions:
|
|
* avoid division by zero
|
|
* avoid taking the log of zero
|
|
* silence clang type conversion warnings using round and trunc
|
|
* consistently check for overflow in round_*_to_next_multiple_of
|
|
- Add tests for laplace edge cases:
|
|
* check add_laplace_noise with maximal values
|
|
* check round_*_to_next_multiple_of with additional values
|
|
* check round_*_to_next_multiple_of with maximal values
|
|
Related to HS stats in #13192.
|