[tor-bugs] #6853 [Tor Directory Authority]: Relay-flag voting code has undefined behaviour

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun Sep 16 15:22:38 UTC 2012


#6853: Relay-flag voting code has undefined behaviour
-------------------------------------+--------------------------------------
 Reporter:  rransom                  |          Owner:  rransom           
     Type:  defect                   |         Status:  new               
 Priority:  normal                   |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor Directory Authority  |        Version:                    
 Keywords:                           |         Parent:                    
   Points:                           |   Actualpoints:                    
-------------------------------------+--------------------------------------

Comment(by asn):

 A person on IRC says that `uint64_t f = (1<<31)` gives
 `0xFFFFFFFF80000000` instead of wished `0x80000000`, for all 32bit integer
 architectures.

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


More information about the tor-bugs mailing list