Author: Jonas Devlieghere Date: 2023-03-09T10:27:18-08:00 New Revision: e67460c974e65aee83d2976226db17d8ffe17cc2
URL: https://github.com/llvm/llvm-project/commit/e67460c974e65aee83d2976226db17d8ffe17cc2 DIFF: https://github.com/llvm/llvm-project/commit/e67460c974e65aee83d2976226db17d8ffe17cc2.diff LOG: [lldb] Add nullptr check to SymbolVendorWasm Add the same nullptr check to SymbolVendorWasm that was added to SymbolVendorELF. Added: Modified: lldb/source/Plugins/SymbolVendor/wasm/SymbolVendorWasm.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/SymbolVendor/wasm/SymbolVendorWasm.cpp b/lldb/source/Plugins/SymbolVendor/wasm/SymbolVendorWasm.cpp index 6290843a89872..91b10ea64535d 100644 --- a/lldb/source/Plugins/SymbolVendor/wasm/SymbolVendorWasm.cpp +++ b/lldb/source/Plugins/SymbolVendor/wasm/SymbolVendorWasm.cpp @@ -109,6 +109,9 @@ SymbolVendorWasm::CreateInstance(const lldb::ModuleSP &module_sp, SectionList *module_section_list = module_sp->GetSectionList(); SectionList *objfile_section_list = sym_objfile_sp->GetSectionList(); + if (!module_section_list || !objfile_section_list) + return nullptr; + static const SectionType g_sections[] = { eSectionTypeDWARFDebugAbbrev, eSectionTypeDWARFDebugAddr, eSectionTypeDWARFDebugAranges, eSectionTypeDWARFDebugCuIndex, _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits