summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Kulaychuk <i.kulaychuk@samsung.com>2018-04-25 18:31:59 (GMT)
committerAlexander Soldatov/AI Ecosystem Lab /SRR/Staff Engineer/삼성전자 <soldatov.a@samsung.com>2019-02-14 17:24:48 (GMT)
commit524f9b85911a627156f74147fc172f9b01c4ba24 (patch)
treee18a03f32a01340099f6a7752dd188f0245c0452
parent4177c7a92bed7cc0faad87f19bbf063fd90c8b68 (diff)
downloadcoreclr-524f9b85911a627156f74147fc172f9b01c4ba24.zip
coreclr-524f9b85911a627156f74147fc172f9b01c4ba24.tar.gz
coreclr-524f9b85911a627156f74147fc172f9b01c4ba24.tar.bz2
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 42c19cb..8cd8f48 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;
}