summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Kulaychuk <i.kulaychuk@samsung.com>2018-04-25 18:31:59 (GMT)
committerGleb Balykov <g.balykov@samsung.com>2020-03-25 12:29:41 (GMT)
commit741b196d52d9a8cf7684393b28dfeb06e809dcb6 (patch)
tree254d6bc384fb17a1c17e76c9fb860f350b5750c6 /src
parent6102b547f1b41d100c3921dc5f593d1afa681845 (diff)
downloadcoreclr-741b196d52d9a8cf7684393b28dfeb06e809dcb6.zip
coreclr-741b196d52d9a8cf7684393b28dfeb06e809dcb6.tar.gz
coreclr-741b196d52d9a8cf7684393b28dfeb06e809dcb6.tar.bz2
Fix OOPStackUnwinderX86::Unwind crash when Eip is invalid
Diffstat (limited to 'src')
-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;
}