[tor-bugs] #18479 [Tor]: Avoid overflow in tor_timegm when time_t is 32 bit

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Mar 4 15:59:38 UTC 2016


#18479: Avoid overflow in tor_timegm when time_t is 32 bit
------------------------+--------------------------------
     Reporter:  teor    |      Owner:
         Type:  defect  |     Status:  new
     Priority:  Medium  |  Milestone:  Tor: 0.2.8.x-final
    Component:  Tor     |    Version:  Tor: unspecified
     Severity:  Normal  |   Keywords:  integer-overflow
Actual Points:          |  Parent ID:
       Points:          |    Sponsor:
------------------------+--------------------------------
 tor_timegm overflows for dates in and after 2037 when time_t is 32-bit.
 Instead, we should warn and return an error.

 This is a bugfix on 3c4b4c8ca in tor-0.0.2pre14.

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


More information about the tor-bugs mailing list