[ASan] Also print <empty stack> when size==0

llvm-svn: 195955
This commit is contained in:
Timur Iskhodzhanov 2013-11-29 12:08:59 +00:00
parent 38c82408a7
commit bbf2ff8193
1 changed files with 2 additions and 2 deletions

View File

@ -41,8 +41,8 @@ static void PrintStackFramePrefix(InternalScopedString *buffer, uptr frame_num,
void StackTrace::PrintStack(const uptr *addr, uptr size,
SymbolizeCallback symbolize_callback) {
if (addr == 0) {
Printf("<empty stack>\n\n");
if (addr == 0 || size == 0) {
Printf(" <empty stack>\n\n");
return;
}
MemoryMappingLayout proc_maps(/*cache_enabled*/true);