[tor-bugs] #8798 [Metrics Data Processor]: Restrict valid keyword characters in metrics-db/-lib to [A-Za-z0-9-]+

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Apr 29 15:40:16 UTC 2013


#8798: Restrict valid keyword characters in metrics-db/-lib to [A-Za-z0-9-]+
------------------------------------+---------------------------------------
 Reporter:  karsten                 |          Owner:     
     Type:  defect                  |         Status:  new
 Priority:  normal                  |      Milestone:     
Component:  Metrics Data Processor  |        Version:     
 Keywords:                          |         Parent:     
   Points:                          |   Actualpoints:     
------------------------------------+---------------------------------------
 A few invalid server descriptors containing a "?contact" line (with ?
 being non-ASCII bytes) confused stem's descriptor parser (see #8049).
 These descriptors were not even valid according to dir-spec.txt:

 {{{
 KeywordChar ::= 'A' ... 'Z' | 'a' ... 'z' | '0' ... '9' | '-'
 }}}

 metrics-db/-lib currently don't consider these lines invalid, but only
 assume they contain an unknown keyword.  They should instead reject these
 descriptors and prevent them from being included in tarballs.

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


More information about the tor-bugs mailing list