[tor-bugs] #28592 [Core Tor/Tor]: Spurious coverity memory leak error in memoize_protover_summary()

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Nov 26 15:39:01 UTC 2018


#28592: Spurious coverity memory leak error in memoize_protover_summary()
--------------------------+------------------------------------
 Reporter:  teor          |          Owner:  (none)
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: 0.4.0.x-final
Component:  Core Tor/Tor  |        Version:  Tor: unspecified
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------------

Comment (by rl1987):

 This is a false positive, as `protover_summary_map` is actually freed and
 assigned to NULL in `protover_summary_cache_free_all()`. I suspect macros
 in map.h make Coverity hard to analyze what's going on here.

 My attempt at fixing this: https://github.com/torproject/tor/pull/544

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


More information about the tor-bugs mailing list