mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-26 07:44:29 +00:00
Fix CID 1134738
This commit is contained in:
parent
61c66b1395
commit
6dfa4f9143
@ -25,7 +25,7 @@ R_API ut8* r_reg_get_bytes(RReg *reg, int type, int *size) {
|
||||
return buf;
|
||||
}
|
||||
|
||||
if (type<0 || type>R_REG_TYPE_LAST)
|
||||
if (type < 0 || type > (R_REG_TYPE_LAST-1))
|
||||
return NULL;
|
||||
sz = reg->regset[type].arena->size;
|
||||
if (size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user