[all-commits] [llvm/llvm-project] 0d7401: [lldb/api] Add checks for StackFrame::GetRegisterC...
Med Ismail Bennani via All-commits
all-commits at lists.llvm.org
Tue Jul 7 14:31:03 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0d7401cf9d5cc0db3de9a8ddb8ea2362d5412d2f
https://github.com/llvm/llvm-project/commit/0d7401cf9d5cc0db3de9a8ddb8ea2362d5412d2f
Author: Med Ismail Bennani <medismail.bennani at gmail.com>
Date: 2020-07-07 (Tue, 07 Jul 2020)
Changed paths:
M lldb/source/API/SBFrame.cpp
Log Message:
-----------
[lldb/api] Add checks for StackFrame::GetRegisterContext calls (NFC)
This patch fixes a crash that is happening because of a null pointer
dereference in SBFrame.
StackFrame::GetRegisterContext says explicitly that you might not get
a valid RegisterContext back but the pointer wasn't tested before,
resulting in crashes. This should solve the issue.
rdar://54462095
Differential Revision: https://reviews.llvm.org/D83343
Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>
More information about the All-commits
mailing list