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
committerGleb Balykov <g.balykov@samsung.com>2018-09-18 15:49:14 +0300
commit0b1ae828120511fb61024c2f03c5d1b9e4e799d0 (patch)
tree4f5c66c831f9eba56b81b8365170ed4e8004d1a4 /src/unwinder/i386/unwinder_i386.cpp
parent226dc8987a19db2c2abdaeb141c5e8ad6e1e6109 (diff)
downloadcoreclr-0b1ae828120511fb61024c2f03c5d1b9e4e799d0.tar.gz
coreclr-0b1ae828120511fb61024c2f03c5d1b9e4e799d0.tar.bz2
coreclr-0b1ae828120511fb61024c2f03c5d1b9e4e799d0.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;
}