Skip to content

Commit c8b60dd

Browse files
committed
[lldb] Add nullptr check to SymbolVendorWasm
Add the same nullptr check to SymbolVendorWasm that was added to SymbolVendorELF. (cherry picked from commit e67460c)
1 parent 5347643 commit c8b60dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/source/Plugins/SymbolVendor/wasm/SymbolVendorWasm.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ SymbolVendorWasm::CreateInstance(const lldb::ModuleSP &module_sp,
108108
SectionList *module_section_list = module_sp->GetSectionList();
109109
SectionList *objfile_section_list = sym_objfile_sp->GetSectionList();
110110

111+
if (!module_section_list || !objfile_section_list)
112+
return nullptr;
113+
111114
static const SectionType g_sections[] = {
112115
eSectionTypeDWARFDebugAbbrev, eSectionTypeDWARFDebugAddr,
113116
eSectionTypeDWARFDebugAranges, eSectionTypeDWARFDebugCuIndex,

0 commit comments

Comments
 (0)