[tor-bugs] #6827 [Tor Relay]: UB in rend_parse_v2_service_descriptor()

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Thu Sep 13 02:56:33 UTC 2012


#6827: UB in rend_parse_v2_service_descriptor()
-----------------------+----------------------------------------------------
 Reporter:  asn        |          Owner:                    
     Type:  defect     |         Status:  new               
 Priority:  normal     |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor Relay  |        Version:                    
 Keywords:             |         Parent:                    
   Points:             |   Actualpoints:                    
-----------------------+----------------------------------------------------
 {{{
     version = (int) tor_parse_long(smartlist_get(versions, i),
                                    10, 0, INT_MAX, &num_ok, NULL);
     if (!num_ok) /* It's a string; let's ignore it. */
       continue;
     result->protocols |= 1 << version;
 }}}

 This is UB if 'version' is bigger than the size of integer of the
 platform.

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


More information about the tor-bugs mailing list