[tor-bugs] #6861 [Tor Client]: Undefined behavior in rend_parse_service_authorization()

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun Sep 16 16:03:33 UTC 2012


#6861: Undefined behavior in rend_parse_service_authorization()
------------------------+---------------------------------------------------
 Reporter:  asn         |          Owner:                    
     Type:  defect      |         Status:  new               
 Priority:  normal      |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor Client  |        Version:                    
 Keywords:              |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------

Comment(by asn):

 Inded, it seems to be implementation-defined behavior.

 `C89/99 Standard Section 6.5.7 Paragraph 5` says:

 {{{
 The result of E1 >> E2 is E1 right-shifted E2 bit positions. If E1 has an
 unsigned type
 or if E1 has a signed type and a nonnegative value, the value of the
 result is the integral
 part of the quotient of E1 / 2^{E2} . If E1 has a signed type and a
 negative value, the
 resulting value is implementation-defined.
 }}}

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


More information about the tor-bugs mailing list