[tor-bugs] #24423 [Core Tor/Tor]: Fix STACK warnings in Tor

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Dec 12 19:33:55 UTC 2017


#24423: Fix STACK warnings in Tor
-----------------------------+------------------------------------
 Reporter:  nickm            |          Owner:  nickm
     Type:  defect           |         Status:  accepted
 Priority:  Medium           |      Milestone:  Tor: 0.3.3.x-final
Component:  Core Tor/Tor     |        Version:
 Severity:  Normal           |     Resolution:
 Keywords:  review-group-27  |  Actual Points:
Parent ID:                   |         Points:
 Reviewer:  catalyst         |        Sponsor:
-----------------------------+------------------------------------

Comment (by catalyst):

 Hm maybe that should be `if (cert_lifetime <= min_real_lifetime +
 start_granularity || cert_lifetime > now)` because the subtraction for
 `earliest_start_time` could still underflow.  (also fixed the comparison
 operator that I had wrong before)

 Then again you could also start getting mixed signed/unsigned comparison
 warnings so maybe we need to use a signed intermediate.

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


More information about the tor-bugs mailing list