[tor-bugs] #27205 [Core Tor/Tor]: add unit test for double-voting

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Aug 19 02:33:48 UTC 2018


#27205: add unit test for double-voting
------------------------------+--------------------------------
     Reporter:  cypherpunks3  |      Owner:  (none)
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:
    Component:  Core Tor/Tor  |    Version:  Tor: 0.2.9.4-alpha
     Severity:  Normal        |   Keywords:  protover
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 `protover.c` has a comment about very important code that guards against
 double-voting:

 {{{
   smartlist_sort_strings(expanded);
   smartlist_uniq_strings(expanded); // This makes voting work. do not
 remove
 }}}

 But no test fails if this is removed.

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


More information about the tor-bugs mailing list