mirror of
https://github.com/encounter/objdiff.git
synced 2026-07-10 12:18:36 -07:00
ARM: Fix index out of bounds error when there are no mapping symbols (#359)
This commit is contained in:
@@ -183,7 +183,7 @@ impl Arch for ArchArm {
|
||||
let mapping_symbols = self
|
||||
.disasm_modes
|
||||
.get(§ion_index)
|
||||
.map(|x| x.as_slice())
|
||||
.map(|x| if x.is_empty() { &fallback_mappings } else { x.as_slice() })
|
||||
.unwrap_or(&fallback_mappings);
|
||||
let first_mapping_idx = mapping_symbols
|
||||
.binary_search_by_key(&start_addr, |x| x.address)
|
||||
|
||||
Reference in New Issue
Block a user