[compiler-rt] r176800 - [ASan] don't call strerr from functions that map memory, since this results in malloc().
Alexander Potapenko
glider at google.com
Mon Mar 11 03:21:28 PDT 2013
Author: glider
Date: Mon Mar 11 05:21:28 2013
New Revision: 176800
URL: http://llvm.org/viewvc/llvm-project?rev=176800&view=rev
Log:
[ASan] don't call strerr from functions that map memory, since this results in malloc().
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc?rev=176800&r1=176799&r2=176800&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc Mon Mar 11 05:21:28 2013
@@ -66,8 +66,8 @@ void *MmapOrDie(uptr size, const char *m
Die();
}
recursion_count++;
- Report("ERROR: %s failed to allocate 0x%zx (%zd) bytes of %s: %s\n",
- SanitizerToolName, size, size, mem_type, strerror(errno));
+ Report("ERROR: %s failed to allocate 0x%zx (%zd) bytes of %s: %d\n",
+ SanitizerToolName, size, size, mem_type, errno);
DumpProcessMap();
CHECK("unable to mmap" && 0);
}
More information about the llvm-commits
mailing list