[tor-bugs] #18241 [Tor]: Assert that the event_base is initialized before using it.

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Feb 4 17:35:38 UTC 2016


#18241: Assert that the event_base is initialized before using it.
-----------------------------+-------------------------------
     Reporter:  nickm        |      Owner:
         Type:  enhancement  |     Status:  new
     Priority:  Medium       |  Milestone:
    Component:  Tor          |    Version:
     Severity:  Normal       |   Keywords:  TorCoreTeam201602
Actual Points:               |  Parent ID:
       Points:               |    Sponsor:
-----------------------------+-------------------------------
 We should assert that event_base is non-null in tor_libevent_get_base(),
 to avoid annoying bugs.  (Libevent 2.0 will fail gently in this case,
 whereas libevent 1.4 will fail hard and confusingly).

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


More information about the tor-bugs mailing list