From d1363fe34d1ae89b7ade1c6a142e2bcfcabc249d Mon Sep 17 00:00:00 2001 From: Igor Kulaychuk Date: Wed, 25 Apr 2018 21:31:59 +0300 Subject: Fix OOPStackUnwinderX86::Unwind crash when Eip is invalid --- src/unwinder/i386/unwinder_i386.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/unwinder/i386/unwinder_i386.cpp') diff --git a/src/unwinder/i386/unwinder_i386.cpp b/src/unwinder/i386/unwinder_i386.cpp index 42c19cb54d..8cd8f481bb 100644 --- a/src/unwinder/i386/unwinder_i386.cpp +++ b/src/unwinder/i386/unwinder_i386.cpp @@ -30,7 +30,7 @@ BOOL OOPStackUnwinderX86::Unwind(T_CONTEXT* pContextRecord, T_KNONVOLATILE_CONTE EECodeInfo codeInfo; codeInfo.Init((PCODE) ControlPc); - if (!UnwindStackFrame(&rd, &codeInfo, UpdateAllRegs, &codeManState, NULL)) + if (!codeInfo.IsValid() || !UnwindStackFrame(&rd, &codeInfo, UpdateAllRegs, &codeManState, NULL)) { return FALSE; } -- cgit v1.2.3