summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Kulaychuk <i.kulaychuk@samsung.com>2018-04-25 18:31:59 (GMT)
committerGleb Balykov <g.balykov@samsung.com>2018-09-18 12:49:14 (GMT)
commit0b1ae828120511fb61024c2f03c5d1b9e4e799d0 (patch)
tree4f5c66c831f9eba56b81b8365170ed4e8004d1a4
parent226dc8987a19db2c2abdaeb141c5e8ad6e1e6109 (diff)
downloadcoreclr-0b1ae828120511fb61024c2f03c5d1b9e4e799d0.zip
coreclr-0b1ae828120511fb61024c2f03c5d1b9e4e799d0.tar.gz
coreclr-0b1ae828120511fb61024c2f03c5d1b9e4e799d0.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;
}