Authorities on IPv6: minor fixes and unit tests
[tor.git] / changes / laplace-edge-cases
blob6c8c77b040e8f85b0623a09fc55252a0d5d2bf86
1   o Code simplifications and unit tests:
2     - Handle edge cases in the laplace functions: avoid division by zero,
3       avoid taking the log of zero, and silence clang type conversion
4       warnings using round and trunc.  Add unit tests for edge cases with
5       maximal values.
6     - Consistently check for overflow in round_*_to_next_multiple_of
7       functions, and add unit tests with additional and maximal values.