summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorElykDeer <kyle@vector35.com>2025-04-01 11:13:47 -0400
committerElykDeer <kyle@vector35.com>2025-04-01 11:24:27 -0400
commit7d72d25998116ae4ebb8d911ee9dad31ffa60ea0 (patch)
tree30eb27b0382de7194d8116a309734b7a5b84ea98 /plugins
parent100faeb5d195c71e93194ea9bdfee1a08aaedbd7 (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.rs5
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 {