From 4394bca516bce731cffd21b5be6e6777e7365628 Mon Sep 17 00:00:00 2001 From: Igor Kulaychuk Date: Wed, 25 Apr 2018 21:31:59 +0300 Subject: [PATCH] [Tizen] Fix OOPStackUnwinderX86::Unwind crash when Eip is invalid --- src/coreclr/unwinder/i386/unwinder_i386.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/unwinder/i386/unwinder_i386.cpp b/src/coreclr/unwinder/i386/unwinder_i386.cpp index 958d0af..75bbabb 100644 --- a/src/coreclr/unwinder/i386/unwinder_i386.cpp +++ b/src/coreclr/unwinder/i386/unwinder_i386.cpp @@ -29,7 +29,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; } -- 2.7.4