[tor-bugs] #13389 [DocTor]: If no authorities votes on a BadExit flag, doctor crashes

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Oct 11 21:41:03 UTC 2014


#13389: If no authorities votes on a BadExit flag, doctor crashes
------------------------+--------------------
     Reporter:  tom     |      Owner:  atagar
         Type:  defect  |     Status:  new
     Priority:  normal  |  Milestone:
    Component:  DocTor  |    Version:
   Resolution:          |   Keywords:
Actual Points:          |  Parent ID:
       Points:          |
------------------------+--------------------

Comment (by tom):

 Fixing this may be as simple as

 {{{
 @@ -609,6 +646,8 @@ def bad_exits_in_sync(latest_consensus, consensuses,
 votes):
        bad_exits[authority] = set(flagged)

    voting_authorities = set(bad_exits.keys())
 +  if not voting_authorities:
 +    return
    agreed_bad_exits = set.intersection(*bad_exits.values())
    disagreed_bad_exits =
 set.union(*bad_exits.values()).difference(agreed_bad_exits)
 }}}

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


More information about the tor-bugs mailing list