[tor-bugs] #8787 [Tor]: Check return values for more unix functions

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Mar 19 18:46:08 UTC 2014


#8787: Check return values for more unix functions
------------------------+--------------------------------
     Reporter:  nickm   |      Owner:
         Type:  defect  |     Status:  new
     Priority:  normal  |  Milestone:  Tor: 0.2.5.x-final
    Component:  Tor     |    Version:
   Resolution:          |   Keywords:  tor-client
Actual Points:          |  Parent ID:
       Points:          |
------------------------+--------------------------------

Comment (by andrea):

 My bug8787 branch now has this for munmap(), lseek() and unlink().  For
 strftime(), the most straightforward way would be to make
 format_rfc1123_time(), format_iso_time() and format_iso_local_time() able
 to pass on an error return, but these are called from 88 distinct sites in
 src/or/*.c.  Are we sure changing all of those is the right approach?

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


More information about the tor-bugs mailing list