[sanitizer] Make AtosSymbolizer more resilient when symbolicating a zero address

llvm-svn: 265269
This commit is contained in:
Kuba Brecka 2016-04-03 19:13:03 +00:00
parent 829dc87a68
commit d0e83a6eb2
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ AtosSymbolizer::AtosSymbolizer(const char *path, LowLevelAllocator *allocator)
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);