From b6987d14632a74aafa71e8289865858c6e714de6 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 16 Aug 2023 00:10:46 +0300 Subject: [PATCH] [RTL/x64] Remove an ASSERT in RtlpTryToUnwindEpilog This can fail on optimized builds, where functions can end after a noreturn function call without an epilog / ret, but with an int 3. We simply fail gracefully, which is the right thing to do. --- sdk/lib/rtl/amd64/unwind.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/lib/rtl/amd64/unwind.c b/sdk/lib/rtl/amd64/unwind.c index 2883b4f494b..72e40860771 100644 --- a/sdk/lib/rtl/amd64/unwind.c +++ b/sdk/lib/rtl/amd64/unwind.c @@ -413,7 +413,6 @@ RtlpTryToUnwindEpilog( /* Make sure this is really a ret instruction */ if (*InstrPtr != 0xc3) { - ASSERT(FALSE); return FALSE; }