From: Igor Kulaychuk Date: Wed, 25 Apr 2018 18:31:59 +0000 (+0300) Subject: [Tizen] Fix OOPStackUnwinderX86::Unwind crash when Eip is invalid X-Git-Tag: accepted/tizen/unified/20221103.165808~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4394bca516bce731cffd21b5be6e6777e7365628;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [Tizen] Fix OOPStackUnwinderX86::Unwind crash when Eip is invalid --- 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; }