[tor-bugs] #7598 [Stem]: Crash in StreamEvent handler
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri Nov 30 21:54:40 UTC 2012
#7598: Crash in StreamEvent handler
----------------------+-----------------------------------------------------
Reporter: robinson | Owner: atagar
Type: defect | Status: new
Priority: normal | Milestone:
Component: Stem | Version:
Keywords: events | Parent: #7328
Points: | Actualpoints:
----------------------+-----------------------------------------------------
Now that there is some event handling, I've begun trying to develop
against Stem and I found this crash:
{{{
File "/usr/lib64/python2.7/site-packages/stem/response/events.py", line
55, in _parse_message
self._parse()
File "/usr/lib64/python2.7/site-packages/stem/response/events.py", line
459, in _parse
raise stem.ProtocolError("Source location's port is invalid: %s" %
self)
ProtocolError: Source location's port is invalid: STREAM 14 NEW 0
176.28.51.238.$649F2D0ACF418F7CFC6539AB2257EB2D5297BAFA.exit:443
SOURCE_ADDR=(Tor_internal):0 PURPOSE=DIR_FETCH
}}}
StreamEvent should use is_valid_port(port, allow-zero=True) due to
DIR_FETCH.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7598>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list