ARM: Fix index out of bounds error when there are no mapping symbols (#359)

This commit is contained in:
LagoLunatic
2026-07-10 01:30:03 -04:00
committed by GitHub
parent dbabdbff11
commit f5ae76e64d
+1 -1
View File
@@ -183,7 +183,7 @@ impl Arch for ArchArm {
let mapping_symbols = self
.disasm_modes
.get(&section_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)