This is an archive of the discontinued LLVM Phabricator instance.

Don't read non-readable address ranges during lsan pointer scanning
ClosedPublic

Authored by fjricci on Apr 13 2017, 1:50 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

fjricci created this revision.Apr 13 2017, 1:50 PM
alekseyshl requested changes to this revision.Apr 14 2017, 10:25 AM
alekseyshl added inline comments.
lib/sanitizer_common/sanitizer_linux_libcdep.cc
449 ↗(On Diff #95202)

bool readable = phdr->p_flags & PF_R; and use it later

lib/sanitizer_common/sanitizer_procmaps_common.cc
145 ↗(On Diff #95202)

Maybe "prot & kProtectionRead"?

lib/sanitizer_common/sanitizer_procmaps_mac.cc
266 ↗(On Diff #95202)

Maybe "prot & kProtectionRead"?

This revision now requires changes to proceed.Apr 14 2017, 10:25 AM
fjricci updated this revision to Diff 95440.Apr 17 2017, 7:56 AM
fjricci edited edge metadata.

Address comments

kubamracek accepted this revision.Apr 17 2017, 8:59 AM
alekseyshl accepted this revision.Apr 17 2017, 9:31 AM
This revision is now accepted and ready to land.Apr 17 2017, 9:31 AM
This revision was automatically updated to reflect the committed changes.