Check that the FakeStack size is non-zero before looking into it.
Sometimes DescribeStackAddress is called before another thread's FakeStack is initialized, which could previously cause a check to fire.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151046 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/asan/asan_allocator.h b/lib/asan/asan_allocator.h
index c754eed..cc6ac84 100644
--- a/lib/asan/asan_allocator.h
+++ b/lib/asan/asan_allocator.h
@@ -107,6 +107,7 @@
   static void OnFree(size_t ptr, size_t size, size_t real_stack);
   // Return the bottom of the maped region.
   uintptr_t AddrIsInFakeStack(uintptr_t addr);
+  bool StackSize() { return stack_size_; }
  private:
   static const size_t kMinStackFrameSizeLog = 9;  // Min frame is 512B.
   static const size_t kMaxStackFrameSizeLog = 16;  // Max stack frame is 64K.