Skip to content

Commit deb2b20

Browse files
committed
[sanitizer] Commit a missing change in BufferedStackTrace::Unwind
1 parent fa27255 commit deb2b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void BufferedStackTrace::Unwind(u32 max_depth, uptr pc, uptr bp, void *context,
8484
UnwindSlow(pc, max_depth);
8585
// If there are too few frames, the program may be built with
8686
// -fno-asynchronous-unwind-tables. Fall back to fast unwinder below.
87-
if (size > 2)
87+
if (size > 2 || size >= max_depth)
8888
return;
8989
#else
9090
UNREACHABLE("slow unwind requested but not available");

0 commit comments

Comments
 (0)