Skip to content

Commit

Permalink
Fix UB. The returned value is shifted by more than 31 bits sometimes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Feb 25, 2025
1 parent 4970540 commit 967a075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librz/arch/isa/arm/armass.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ static char *getrange(char *s) {
}

// ret register #; -1 if failed
static int getreg(const char *str) {
static ut64 getreg(const char *str) {
int i;
char *ep;
const char *aliases[] = { "sb", "sl", "fp", "ip", "sp", "lr", "pc", NULL };
Expand Down

0 comments on commit 967a075

Please sign in to comment.