[tor-bugs] #14803 [Tor]: Tor segfault with hidden service SETCONF

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Feb 9 03:43:13 UTC 2015


#14803: Tor segfault with hidden service SETCONF
--------------------------+-----------------
     Reporter:  atagar    |      Owner:
         Type:  defect    |     Status:  new
     Priority:  critical  |  Milestone:
    Component:  Tor       |    Version:
   Resolution:            |   Keywords:
Actual Points:            |  Parent ID:
       Points:            |
--------------------------+-----------------

Comment (by arma):

 {{{
 rend_service_port_config_new(const char *socket_path)
 {
   if (!socket_path)
     return tor_malloc_zero(sizeof(rend_service_port_config_t));
 }}}

 Looks like it wants a +1 along with that sizeof, to have space for the \0

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


More information about the tor-bugs mailing list