[tor-bugs] #19130 [Core Tor/Tor]: Seg fault in round_int64_to_next_multiple_of()

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu May 19 19:48:51 UTC 2016


#19130: Seg fault in round_int64_to_next_multiple_of()
--------------------------+---------------------
 Reporter:  arma          |          Owner:
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Milestone:
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+---------------------

Comment (by teor):

 We'd also need to `tor_assert(number >= INT64_MIN + 1);`

 But wait, the later statements would still invoke undefined behaviour, so
 the compiler would be free to reach back in time and remove our asserts!

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


More information about the tor-bugs mailing list