summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
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 {