[tor-bugs] #13290 [Tor]: Avoid division by zero in circuitstats pareto calculations

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Sep 29 10:54:31 UTC 2014


#13290: Avoid division by zero in circuitstats pareto calculations
------------------------+------------------------------
     Reporter:  teor    |      Owner:
         Type:  defect  |     Status:  needs_review
     Priority:  normal  |  Milestone:
    Component:  Tor     |    Version:  Tor: unspecified
   Resolution:          |   Keywords:  tor-router
Actual Points:          |  Parent ID:
       Points:          |
------------------------+------------------------------
Changes (by teor):

 * status:  new => needs_review


Comment:

 I've committed a fix to github at:

 Branch: circuitstats-pareto-avoid-div-zero
 Repository: ​https://github.com/teor2345/tor.git
 Commit: 4d0ad34a92dff2be0b23e75ca5373054a5c9334a

 tor tests now run without occasionally (due to random test data?) trapping
 on divide by zero in circuit_build_times_calculate_timeout() in
 circuitstats.c under clang -fsanitize=undefined-trap -fsanitize-undefined-
 trap-on-error.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13290#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list