[tor-bugs] #8447 [Tor]: p_circ_id is a uint32_t, but we print it as a %d

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Mar 10 12:34:32 UTC 2013


#8447: p_circ_id is a uint32_t, but we print it as a %d
-----------------------+----------------------------------------------------
 Reporter:  arma       |          Owner:  nickm             
     Type:  defect     |         Status:  accepted          
 Priority:  normal     |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor        |        Version:                    
 Keywords:  tor-relay  |         Parent:                    
   Points:             |   Actualpoints:                    
-----------------------+----------------------------------------------------

Comment(by nickm):

 In case anybody can work on this, I've started work on a fix in branch
 "bug8447".  In order to make GCC warn in every case where we printf
 circid_t as %d, I've temporarily changed the type of circid_t to uint64_t.
 Once it compiles without warnings, I'll change it back.

 If nobody else can do this, I'll try to finish it later today or tomorrow.

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


More information about the tor-bugs mailing list