[tor-bugs] #33039 [Core Tor/Tor]: Memory leaks in handle_control_getconf

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jan 24 03:39:14 UTC 2020


#33039: Memory leaks in handle_control_getconf
-------------------------------------------------+-------------------------
 Reporter:  nickm                                |          Owner:
                                                 |  catalyst
     Type:  defect                               |         Status:
                                                 |  accepted
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  0.4.3.x-final
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  043-must, memory-leak, regression,   |  Actual Points:
  tor-tests-coverage                             |
Parent ID:                                       |         Points:  1
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by nickm):

 I haven't tested this, but it looks like maybe the cleanup code in getconf
 is incorrect?  It's doing:
 {{{
   SMARTLIST_FOREACH(answers, char *, cp, tor_free(cp));
 }}}
 but I don't think that the "answers" smartlist is actually a list of
 strings?

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


More information about the tor-bugs mailing list