[lsan] Fix r182256.

Add missing call to GetUserBegin().

llvm-svn: 182267
This commit is contained in:
Sergey Matveev 2013-05-20 14:04:56 +00:00
parent b144d36693
commit 6dd91e475a
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ static uptr GetCallerPC(u32 stack_id) {
} }
void ProcessPlatformSpecificAllocationsCb::operator()(void *p) const { void ProcessPlatformSpecificAllocationsCb::operator()(void *p) const {
p = GetUserBegin(p);
LsanMetadata m(p); LsanMetadata m(p);
if (m.allocated() && m.tag() != kReachable) { if (m.allocated() && m.tag() != kReachable) {
if (linker->containsAddress(GetCallerPC(m.stack_trace_id()))) { if (linker->containsAddress(GetCallerPC(m.stack_trace_id()))) {