Message ID | 4823aabb-ed93-963c-ec0c-d7df1f0f6065@suse.cz |
---|---|
State | New |
Headers | show |
Series | [1/2] ASAN: Support detect_invalid_pointer_pairs=1 with detect_stack_use_after_return=1 | expand |
diff --git a/libsanitizer/asan/asan_thread.cpp b/libsanitizer/asan/asan_thread.cpp index 6734d9a1668..cb374b28622 100644 --- a/libsanitizer/asan/asan_thread.cpp +++ b/libsanitizer/asan/asan_thread.cpp @@ -366,7 +366,9 @@ uptr AsanThread::GetStackVariableShadowStart(uptr addr) { bottom = stack_bottom(); } else if (has_fake_stack()) { bottom = fake_stack()->AddrIsInFakeStack(addr); - CHECK(bottom); + if (bottom == 0) { + return 0; + } } else { return 0; }