[tor-bugs] #29939 [Core Tor/Tor]: test_routerkeys: Coverity says, always check mkdir return values.

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Mar 28 13:28:16 UTC 2019


#29939: test_routerkeys: Coverity says, always check mkdir return values.
------------------------------+--------------------------------
     Reporter:  nickm         |      Owner:  (none)
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.4.1.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:
       Points:  0             |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 There's a new coverity warning about checking the return values from
 mkdir() in test_routerkeys.c.  That's odd, since we've had this code since
 0.2.7.2-alpha.  But we may as well check it.  This is CID 1444254.

 I say this is not a backport candidate, since it only affects the tests.

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


More information about the tor-bugs mailing list