#30176: Clear memory in smartlist_remove_keeporder.
------------------------------+------------------------------
 Reporter:  paldium           |          Owner:  (none)
     Type:  defect            |         Status:  new
 Priority:  Medium            |      Component:  Core Tor/Tor
  Version:  Tor: unspecified  |       Severity:  Minor
 Keywords:                    |  Actual Points:
Parent ID:                    |         Points:
 Reviewer:                    |        Sponsor:
------------------------------+------------------------------
 The smartlist functions take great care to reset unused pointers inside
 the smartlist memory to NULL.

 The function smartlist_remove_keeporder does not clear memory in such
 way when elements have been removed. Therefore call memset after the
 for-loop that removes elements. If no element is removed, it is
 effectively a no-op.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/30176>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Reply via email to