summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Kulaychuk <i.kulaychuk@samsung.com>2018-04-25 21:31:59 +0300
committerAlexander Soldatov/AI Ecosystem Lab /SRR/Staff Engineer/삼성전자 <soldatov.a@samsung.com>2019-02-14 20:24:48 +0300
commit524f9b85911a627156f74147fc172f9b01c4ba24 (patch)
treee18a03f32a01340099f6a7752dd188f0245c0452
parent4177c7a92bed7cc0faad87f19bbf063fd90c8b68 (diff)
downloadcoreclr-524f9b85911a627156f74147fc172f9b01c4ba24.tar.gz
coreclr-524f9b85911a627156f74147fc172f9b01c4ba24.tar.bz2
coreclr-524f9b85911a627156f74147fc172f9b01c4ba24.zip
Fix OOPStackUnwinderX86::Unwind crash when Eip is invalid
-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;
}