Skip to content
Permalink
Browse files

Fix zero register set issue ##r2wars

aer x0=0;aer zr=0xffffffff;aer?x0
  • Loading branch information...
radare committed Sep 6, 2019
1 parent 20ad87f commit 7bcac956b181ac43960516dc31ca5234cd781df5
Showing with 3 additions and 0 deletions.
  1. +3 −0 libr/reg/value.c
@@ -134,6 +134,9 @@ R_API bool r_reg_set_value(RReg *reg, RRegItem *item, ut64 value) {
if (r_reg_is_readonly (reg, item)) {
return true;
}
if (item->offset < 0) {
return true;
}
RRegArena *arena = reg->regset[item->arena].arena;
if (!arena) {
return false;

0 comments on commit 7bcac95

Please sign in to comment.
You can’t perform that action at this time.