mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
Hardened the process of reading the program counter
on behalf of a DWARF expression. llvm-svn: 152477
This commit is contained in:
@@ -1219,7 +1219,12 @@ DWARFExpression::Evaluate
|
||||
else
|
||||
{
|
||||
frame = exe_ctx->GetFramePtr();
|
||||
pc = frame->GetRegisterContext()->GetPC();
|
||||
if (!frame)
|
||||
return false;
|
||||
RegisterContextSP reg_ctx_sp = frame->GetRegisterContext();
|
||||
if (!reg_ctx_sp)
|
||||
return false;
|
||||
pc = reg_ctx_sp->GetPC();
|
||||
}
|
||||
|
||||
if (loclist_base_load_addr != LLDB_INVALID_ADDRESS)
|
||||
|
||||
Reference in New Issue
Block a user