summaryrefslogtreecommitdiff
path: root/src/unwinder
diff options
context:
space:
mode:
authorIgor Kulaychuk <i.kulaychuk@samsung.com>2018-04-25 21:31:59 +0300
committerKonstantin Baladurin <k.baladurin@samsung.com>2019-09-24 19:39:57 +0300
commit022aa68471dbae8d9f10aac9b1377936211bfc11 (patch)
treee9d35e7ed1a570bd1a20ce37ed424d80278c3d67 /src/unwinder
parent93dabd34572f590650f4ea61d44fbb6f0735427f (diff)
downloadcoreclr-022aa68471dbae8d9f10aac9b1377936211bfc11.tar.gz
coreclr-022aa68471dbae8d9f10aac9b1377936211bfc11.tar.bz2
coreclr-022aa68471dbae8d9f10aac9b1377936211bfc11.zip
Fix OOPStackUnwinderX86::Unwind crash when Eip is invalid
Diffstat (limited to 'src/unwinder')
-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;
}