[compiler-rt] r182267 - [lsan] Fix r182256.

Sergey Matveev earthdok at google.com
Mon May 20 07:04:56 PDT 2013


Author: smatveev
Date: Mon May 20 09:04:56 2013
New Revision: 182267

URL: http://llvm.org/viewvc/llvm-project?rev=182267&view=rev
Log:
[lsan] Fix r182256.

Add missing call to GetUserBegin().

Modified:
    compiler-rt/trunk/lib/lsan/lsan_common_linux.cc

Modified: compiler-rt/trunk/lib/lsan/lsan_common_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lsan_common_linux.cc?rev=182267&r1=182266&r2=182267&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lsan_common_linux.cc (original)
+++ compiler-rt/trunk/lib/lsan/lsan_common_linux.cc Mon May 20 09:04:56 2013
@@ -101,6 +101,7 @@ static uptr GetCallerPC(u32 stack_id) {
 }
 
 void ProcessPlatformSpecificAllocationsCb::operator()(void *p) const {
+  p = GetUserBegin(p);
   LsanMetadata m(p);
   if (m.allocated() && m.tag() != kReachable) {
     if (linker->containsAddress(GetCallerPC(m.stack_trace_id()))) {





More information about the llvm-commits mailing list