summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedFrameProviderPythonInterface.cpp
diff options
context:
space:
mode:
authorPaul Kirth <paulkirth@google.com>2025-11-10 11:28:25 -0800
committerGitHub <noreply@github.com>2025-11-10 11:28:25 -0800
commit0364bafdadb7792c59bc9fa54c2a96d4278f9e66 (patch)
tree0781c742d2a8b812ee37c3a7c2dbaf9c1594112d /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedFrameProviderPythonInterface.cpp
parentefc83cc4a08f5ac4142e70ef9cab62787384643a (diff)
[clang] Fix possible nullptr deref in BuildCXXNestedNameSpecifier (#166995)
There is a possible nullptr deref in BuildCXXNestedNameSpecifier when calling ExtendNestedNameSpecifier or using isa<>. This initially showed up as a crash in clangd, that didn't manifest in when compiling w/ clang. The reduced test case added in this patch, however does expose the issue in clang. Testing locally shows that both this test case and the original clangd issue are fixed by checking the validity of the pointer before trying to dispatch. Since all code paths require the pointer to be valid (usually by virtue of a dyn_cast or isa<> check), there should be no functional difference. Fixes #166843
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedFrameProviderPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions