[tor-bugs] #20710 [Core Tor/Tor]: memory leak in sandbox_getaddrinfo()

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Nov 18 18:32:26 UTC 2016


#20710: memory leak in sandbox_getaddrinfo()
--------------------------+------------------------------------
 Reporter:  arma          |          Owner:
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: 0.2.9.x-final
Component:  Core Tor/Tor  |        Version:  Tor: 0.2.5.5-alpha
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------------

Comment (by cypherpunks):

 Replying to [comment:3 arma]:
 > That is, can we convince ourselves that when it does
 > {{{
 >     *elm = (*elm)->field.hte_next;
 \
 > }}}
 > inside HT_NEXT_RMV, *elm isn't dangerous to try to free?
 It does look dangerous because `item == elm`, `item` is freed and in the
 next iteration is read from as this snippet shows.

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


More information about the tor-bugs mailing list