diff options
author | Igor Kulaychuk <i.kulaychuk@samsung.com> | 2018-04-25 21:31:59 +0300 |
---|---|---|
committer | Gleb Balykov <g.balykov@samsung.com> | 2020-03-25 15:29:41 +0300 |
commit | 741b196d52d9a8cf7684393b28dfeb06e809dcb6 (patch) | |
tree | 254d6bc384fb17a1c17e76c9fb860f350b5750c6 | |
parent | 6102b547f1b41d100c3921dc5f593d1afa681845 (diff) | |
download | coreclr-741b196d52d9a8cf7684393b28dfeb06e809dcb6.tar.gz coreclr-741b196d52d9a8cf7684393b28dfeb06e809dcb6.tar.bz2 coreclr-741b196d52d9a8cf7684393b28dfeb06e809dcb6.zip |
Fix OOPStackUnwinderX86::Unwind crash when Eip is invalid
-rw-r--r-- | src/unwinder/i386/unwinder_i386.cpp | 2 |
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; } |