diff options
| author | ElykDeer <kyle@vector35.com> | 2025-04-01 11:13:47 -0400 |
|---|---|---|
| committer | ElykDeer <kyle@vector35.com> | 2025-04-01 11:24:27 -0400 |
| commit | 7d72d25998116ae4ebb8d911ee9dad31ffa60ea0 (patch) | |
| tree | 30eb27b0382de7194d8116a309734b7a5b84ea98 /plugins | |
| parent | 100faeb5d195c71e93194ea9bdfee1a08aaedbd7 (diff) | |
DWARF Parser: Remove error log and ignore lexical ranges that start and end at 0
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/dwarf/dwarf_import/src/functions.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/dwarf/dwarf_import/src/functions.rs b/plugins/dwarf/dwarf_import/src/functions.rs index 9f2669aa..5b228713 100644 --- a/plugins/dwarf/dwarf_import/src/functions.rs +++ b/plugins/dwarf/dwarf_import/src/functions.rs @@ -209,6 +209,11 @@ pub(crate) fn parse_lexical_block<R: ReaderType>( return None; }; + // DWARFv5 spec section 2.17 allows for undefined behavior in cases where the object currently being referred to doesn't exist + if low_pc == 0 && high_pc == 0 { + return None; + } + if low_pc < high_pc { result.insert(low_pc..high_pc); } else { |
