diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-02-25 14:59:28 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-03-13 10:36:26 -0400 |
commit | a71999462b8d185c70169c4cba3efde6e55393ce (patch) | |
tree | 25dc5363c326e9489dc85cc78a92094e0883c0d9 /changes/ticket27761 | |
parent | 18de065cbbcd9863842fc7f773033f295a0000dc (diff) | |
download | tor-a71999462b8d185c70169c4cba3efde6e55393ce.tar.gz tor-a71999462b8d185c70169c4cba3efde6e55393ce.zip |
Fix test prob distr parameters that caused warnings.
They were causing the following warnings in circuitpadding/circuitpadding_sample_distribution:
src/lib/math/prob_distr.c:1311:17: runtime error: division by zero
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/lib/math/prob_distr.c:1311:17 in
src/lib/math/prob_distr.c:1219:49: runtime error: division by zero
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/lib/math/prob_distr.c:1219:49 in
because the distributions were called with erroneous parameters (e.g. geometric
distribution with p=0).
We now defined these test probability distributions with more realistic
parameters.
As far as the circuitpadding_sample_distribution() test is concerned, it
doesn't matter if the distributions return values outside of [0,10] since we
already restrict the values into that interval using min=0 and max=10 (and RTT
estimate is disabled).
Diffstat (limited to 'changes/ticket27761')
0 files changed, 0 insertions, 0 deletions