mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-20 12:18:18 +00:00
Avoid false positive anal hints in aae
This commit is contained in:
parent
b42c9a284f
commit
aac34821df
@ -3426,7 +3426,12 @@ static int esilbreak_reg_write(RAnalEsil *esil, const char *name, ut64 *val) {
|
|||||||
if (!(*val & 1)) {
|
if (!(*val & 1)) {
|
||||||
r_anal_hint_set_bits (anal, *val, 32);
|
r_anal_hint_set_bits (anal, *val, 32);
|
||||||
} else {
|
} else {
|
||||||
r_anal_hint_set_bits (anal, *val - 1, 16);
|
ut64 snv = r_reg_getv (anal->reg, "pc");
|
||||||
|
if (snv != UT32_MAX && snv != UT64_MAX) {
|
||||||
|
if (r_io_is_valid_offset (anal->iob.io, *val, 1)) {
|
||||||
|
r_anal_hint_set_bits (anal, *val - 1, 16);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user