This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizer] Plug a leak in POSIXSymbolizer::FindModuleForAddresss happening after module load/unload
ClosedPublic

Authored by timurrrr on Mar 25 2015, 1:40 PM.

Details

Reviewers
kcc
samsonov

Diff Detail

Event Timeline

timurrrr updated this revision to Diff 22676.Mar 25 2015, 1:40 PM
timurrrr retitled this revision from to [Sanitizer] Plug a leak in POSIXSymbolizer::FindModuleForAddresss happening after module load/unload.
timurrrr updated this object.
timurrrr edited the test plan for this revision. (Show Details)
timurrrr added reviewers: kcc, samsonov.
timurrrr added subscribers: Unknown Object (MLST), kubamracek.
timurrrr added inline comments.Mar 25 2015, 1:43 PM
lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
355

This change is not required *right now* as POSIXSymbolizer is placement new'd on a mmap'ed memory block, but let's set the default values explicitly just in case.

372

Please note this code assumed LoadedModule is trivially default constructable, which wasn't the case strictly speaking as the implicit default constructor was not available.

411

The comment was well said :)

samsonov accepted this revision.Mar 25 2015, 2:06 PM
samsonov edited edge metadata.

LGTM. Thanks for fixing this!

This revision is now accepted and ready to land.Mar 25 2015, 2:06 PM
timurrrr closed this revision.Mar 26 2015, 12:17 AM

r233257, thanks!