Missed a null-ptr check in previous PR for Debuginfod testing#86292
Merged
Missed a null-ptr check in previous PR for Debuginfod testing#86292
Conversation
Member
|
@llvm/pr-subscribers-lldb Author: Kevin Frei (kevinfrei) Changes@GeorgeHuyubo noticed an unchecked shared pointer result in #85693. This is the fix for that issue. Full diff: https://github.com/llvm/llvm-project/pull/86292.diff 1 Files Affected:
diff --git a/lldb/source/Plugins/SymbolVendor/ELF/SymbolVendorELF.cpp b/lldb/source/Plugins/SymbolVendor/ELF/SymbolVendorELF.cpp
index 91b8b4a979e0c7..a9956aa9075fe2 100644
--- a/lldb/source/Plugins/SymbolVendor/ELF/SymbolVendorELF.cpp
+++ b/lldb/source/Plugins/SymbolVendor/ELF/SymbolVendorELF.cpp
@@ -53,7 +53,7 @@ static bool IsDwpSymbolFile(const lldb::ModuleSP &module_sp,
ObjectFileSP dwp_obj_file = ObjectFile::FindPlugin(
module_sp, &file_spec, 0, FileSystem::Instance().GetByteSize(file_spec),
dwp_file_data_sp, dwp_file_data_offset);
- if (!ObjectFileELF::classof(dwp_obj_file.get()))
+ if (!dwp_obj_file || !ObjectFileELF::classof(dwp_obj_file.get()))
return false;
// The presence of a debug_cu_index section is the key identifying feature of
// a DWP file. Make sure we don't fill in the section list on dwp_obj_file
|
clayborg
approved these changes
Mar 22, 2024
chencha3
pushed a commit
to chencha3/llvm-project
that referenced
this pull request
Mar 23, 2024
…6292) @GeorgeHuyubo noticed an unchecked shared pointer result in llvm#85693. This is the fix for that issue. Co-authored-by: Kevin Frei <freik@meta.com>
XavierRaynaud
pushed a commit
to kalray/llvm-project
that referenced
this pull request
Oct 28, 2025
…6292) @GeorgeHuyubo noticed an unchecked shared pointer result in llvm#85693. This is the fix for that issue. Co-authored-by: Kevin Frei <freik@meta.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@GeorgeHuyubo noticed an unchecked shared pointer result in #85693. This is the fix for that issue.