[tor-bugs] #32689 [Applications]: control.py self.msg() calls try to join lists with strings

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Dec 6 15:08:14 UTC 2019


#32689: control.py self.msg() calls try to join lists with strings
--------------------------+------------------------------
 Reporter:  kamin07       |          Owner:  (none)
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Component:  Applications
  Version:  Tor: 0.3.3.6  |       Severity:  Normal
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------
 In control.py, at the following instances, str is being concatenated with
 a list, which raises an exception:
 1. line 3129
 2. line 3557
 3. line 3952
 4. line 3972

 Example: line 3129:
 raise stem.ProtocolError('SETEVENTS rejected %s' % ',
 '.join(failed_events))

 raises exception. Can be fixed by using:
 raise stem.ProtocolError('SETEVENTS rejected %s' % ', '.join(str(v) for v
 in failed_events))

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


More information about the tor-bugs mailing list