Skip to content

Commit

Permalink
Fix invalid bit hints on some arm/thumb binaries ##bin
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 10, 2024
1 parent 6c6628a commit af5e520
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libr/core/cbin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2428,7 +2428,9 @@ static void handle_arm_hint(RCore *core, RBinInfo *info, ut64 paddr, ut64 vaddr,
if (paddr & 1 || bits == 16) {
force_bits = 16;
} else if (info->bits == 16 && bits == 32) {
// ignore this case, which causes false positives on half-arm-thumb binaries
force_bits = 32;
return;
} else if (!(paddr & 1) && bits == 32) {
force_bits = 32;
}
Expand Down

0 comments on commit af5e520

Please sign in to comment.