Files
tor/changes
teor 4d0ad34a92 Avoid division by zero in circuitstats pareto
In circuit_build_times_calculate_timeout() in circuitstats.c, avoid dividing
by zero in the pareto calculations.

If either the alpha or p parameters are 0, we would divide by zero, yielding
an infinite result; which would be clamped to INT32_MAX anyway. So rather
than dividing by zero, we just skip the offending calculation(s), and
use INT32_MAX for the result.

Division by zero traps under clang -fsanitize=undefined-trap -fsanitize-undefined-trap-on-error.
2014-09-29 20:49:24 +10:00
..
2014-07-16 15:33:47 +02:00
2014-09-22 10:39:51 -04:00
2014-09-22 14:18:01 -04:00
2014-08-20 13:33:49 -04:00
2014-08-20 13:45:16 -04:00
2014-07-16 16:54:42 +02:00
2014-08-15 10:06:27 -04:00
2014-07-16 09:52:37 +02:00
2014-07-27 15:41:30 -04:00
2014-08-09 15:57:44 -04:00
2014-08-13 10:39:56 -04:00
2014-09-01 16:22:52 -04:00
2014-08-20 12:56:57 -04:00
2014-09-20 16:46:02 -04:00
2014-09-09 12:08:03 -04:00
2014-09-11 00:05:56 -04:00
2014-07-16 06:04:55 -04:00
2014-07-16 12:16:49 +02:00
2014-06-20 09:49:36 -04:00
2014-09-22 10:55:53 -04:00
2014-09-15 21:39:12 -04:00