From f5ae76e64dab4ebd7d2eb670d6c79491d66d5266 Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Fri, 10 Jul 2026 01:30:03 -0400 Subject: [PATCH] ARM: Fix index out of bounds error when there are no mapping symbols (#359) --- objdiff-core/src/arch/arm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objdiff-core/src/arch/arm.rs b/objdiff-core/src/arch/arm.rs index 78e93b8..4838ed2 100644 --- a/objdiff-core/src/arch/arm.rs +++ b/objdiff-core/src/arch/arm.rs @@ -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)