forked from OSchip/llvm-project
[sanitizer] Make AtosSymbolizer more resilient when symbolicating a zero address
llvm-svn: 265269
This commit is contained in:
parent
829dc87a68
commit
d0e83a6eb2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue