[tor-bugs] #21471 [Core Tor/Tor]: handle_get_hs_descriptor_v3() does strlen(NULL) when descriptor isn't found

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Feb 15 13:36:26 UTC 2017


#21471: handle_get_hs_descriptor_v3() does strlen(NULL) when descriptor isn't found
------------------------------+------------------------------------
     Reporter:  teor          |      Owner:
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.3.0.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:  tor-hs, prop224, crash
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+------------------------------------
 hs_cache_lookup_as_dir() returns 0 when a descriptor isn't found, but a
 404 is only sent when the return value is < 0.

 Did anyone run this code?

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


More information about the tor-bugs mailing list