Skip to content

Commit b1575f9

Browse files
kevinfreiKevin Frei
and
Kevin Frei
authored
Missed a null-ptr check in previous PR for Debuginfod testing (#86292)
@GeorgeHuyubo noticed an unchecked shared pointer result in #85693. This is the fix for that issue. Co-authored-by: Kevin Frei <[email protected]>
1 parent fb329f1 commit b1575f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/SymbolVendor/ELF/SymbolVendorELF.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static bool IsDwpSymbolFile(const lldb::ModuleSP &module_sp,
5353
ObjectFileSP dwp_obj_file = ObjectFile::FindPlugin(
5454
module_sp, &file_spec, 0, FileSystem::Instance().GetByteSize(file_spec),
5555
dwp_file_data_sp, dwp_file_data_offset);
56-
if (!ObjectFileELF::classof(dwp_obj_file.get()))
56+
if (!dwp_obj_file || !ObjectFileELF::classof(dwp_obj_file.get()))
5757
return false;
5858
// The presence of a debug_cu_index section is the key identifying feature of
5959
// a DWP file. Make sure we don't fill in the section list on dwp_obj_file

0 commit comments

Comments
 (0)