summaryrefslogtreecommitdiff
path: root/src/unwinder/i386/unwinder_i386.cpp
diff options
context:
space:
mode:
authorIgor Kulaychuk <i.kulaychuk@samsung.com>2018-04-25 21:31:59 +0300
committer이형주/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>2018-07-06 09:22:08 +0900
commitd1363fe34d1ae89b7ade1c6a142e2bcfcabc249d (patch)
tree8e75752738e974c8e3b43476243c4a95bc660a01 /src/unwinder/i386/unwinder_i386.cpp
parent7aeab19eb3fc04a9149ea12d3dbfeb6a2646e647 (diff)
downloadcoreclr-d1363fe34d1ae89b7ade1c6a142e2bcfcabc249d.tar.gz
coreclr-d1363fe34d1ae89b7ade1c6a142e2bcfcabc249d.tar.bz2
coreclr-d1363fe34d1ae89b7ade1c6a142e2bcfcabc249d.zip
Fix OOPStackUnwinderX86::Unwind crash when Eip is invalid
Diffstat (limited to 'src/unwinder/i386/unwinder_i386.cpp')
-rw-r--r--src/unwinder/i386/unwinder_i386.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}