[tor-bugs] #10259 [Tor]: gcc 4.8 with CFLAGS=-Os generates infinite loop in smartlist_ensure_capacity()

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Dec 1 14:58:49 UTC 2013


#10259: gcc 4.8 with CFLAGS=-Os generates infinite loop in
smartlist_ensure_capacity()
--------------------------+--------------------------------
     Reporter:  zougloub  |      Owner:  nick
         Type:  defect    |     Status:  new
     Priority:  normal    |  Milestone:
    Component:  Tor       |    Version:  Tor: 0.2.5.1-alpha
   Resolution:            |   Keywords:  compiler
Actual Points:            |  Parent ID:
       Points:            |
--------------------------+--------------------------------

Comment (by cypherpunks):

 It happens for -O2 too, actually. But seems like "fixed" for Tor by
 -fwrapv. Tested with  [http://gcc.godbolt.org Interactive compiler].

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


More information about the tor-bugs mailing list