diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/dwarf/dwarf_import/src/functions.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/dwarf/dwarf_import/src/functions.rs b/plugins/dwarf/dwarf_import/src/functions.rs index 532b88a2..7ed94810 100644 --- a/plugins/dwarf/dwarf_import/src/functions.rs +++ b/plugins/dwarf/dwarf_import/src/functions.rs @@ -240,6 +240,9 @@ pub(crate) fn parse_lexical_block<R: ReaderType>( if low_pc < high_pc { result.insert(low_pc..high_pc); + } else if low_pc == high_pc { + // Ranges where start == end may be ignored (DWARFv5 spec, 2.17.3 line 17) + return None; } else { error!( "Invalid lexical block range: {:#x} -> {:#x}", |
