[tor-bugs] #11648 [Tor]: Problem parsing .z-compressed descriptors fetched via DirPort

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Apr 29 18:09:10 UTC 2014


#11648: Problem parsing .z-compressed descriptors fetched via DirPort
-------------------------+-----------------------
     Reporter:  karsten  |      Owner:
         Type:  defect   |     Status:  new
     Priority:  normal   |  Milestone:
    Component:  Tor      |    Version:
   Resolution:           |   Keywords:  tor-relay
Actual Points:           |  Parent ID:
       Points:           |
-------------------------+-----------------------

Comment (by wfn):

 Last mystery comment for now:

 1. It seems that zlib header should include the length of the zlib image.
 When sending in multiple chunks, tor is of course unable to provide the
 right length in the header.

 2. (this is the "try this magical pill" part:) does using
 `zlib.decompress(data, 15 + 32)` on python's side help, perchance (can't
 test right now)? (See: http://stackoverflow.com/questions/1838699/how-
 can-i-decompress-a-gzip-stream-with-zlib)

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


More information about the tor-bugs mailing list