[tor-bugs] #5810 [Stem]: Implement verification of server descriptor

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Nov 23 22:58:13 UTC 2012


#5810: Implement verification of server descriptor
-------------------------+--------------------------------------------------
 Reporter:  reganeet     |          Owner:  reganeet    
     Type:  enhancement  |         Status:  needs_review
 Priority:  normal       |      Milestone:              
Component:  Stem         |        Version:              
 Keywords:  descriptors  |         Parent:              
   Points:               |   Actualpoints:              
-------------------------+--------------------------------------------------

Comment(by eoinof):

 Actually I'll add the info on the hang here since the code has not
 yet been added to Tor.
 In stem/descriptor/__init__.py:121
 _parse_metrics_file()
 {{{
     yield
 stem.descriptor.server_descriptor.RelayDescriptor(descriptor_file.read())
 }}}
 will hang if construction of the RelayDescriptor raises an exception.. as
 happens
 with the above patch.

 This will only occur if the data is invalid.

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


More information about the tor-bugs mailing list