[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs