[compiler-rt] r265269 - [sanitizer] Make AtosSymbolizer more resilient when symbolicating a zero address
Kuba Brecka via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 3 12:13:03 PDT 2016
Author: kuba.brecka
Date: Sun Apr 3 14:13:03 2016
New Revision: 265269
URL: http://llvm.org/viewvc/llvm-project?rev=265269&view=rev
Log:
[sanitizer] Make AtosSymbolizer more resilient when symbolicating a zero address
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_mac.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_mac.cc?rev=265269&r1=265268&r2=265269&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_mac.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_mac.cc Sun Apr 3 14:13:03 2016
@@ -157,6 +157,7 @@ AtosSymbolizer::AtosSymbolizer(const cha
bool AtosSymbolizer::SymbolizePC(uptr addr, SymbolizedStack *stack) {
if (!process_) return false;
+ if (addr == 0) return false;
char command[32];
internal_snprintf(command, sizeof(command), "0x%zx\n", addr);
const char *buf = process_->SendCommand(command);
More information about the llvm-commits
mailing list