diff options
-rw-r--r-- | lib/asan/asan_stack.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/asan/asan_stack.cc b/lib/asan/asan_stack.cc index aec75818..cbc151cc 100644 --- a/lib/asan/asan_stack.cc +++ b/lib/asan/asan_stack.cc @@ -25,6 +25,10 @@ static bool MaybeCallAsanSymbolize(const void *pc, char *out_buffer, } void PrintStack(const uptr *trace, uptr size) { + if (!trace) { + Printf("<empty stack>\n"); + return; + } StackTrace::PrintStack(trace, size, common_flags()->symbolize, MaybeCallAsanSymbolize); } |