mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-11 06:55:01 +00:00
Blindfix for empty reg arenas
This commit is contained in:
parent
641d4ac765
commit
c0e14962e2
@ -218,7 +218,11 @@ R_API int r_reg_set_profile_string(RReg *reg, const char *str) {
|
||||
for (i = 0; i < R_REG_TYPE_LAST; i++) {
|
||||
RRegSet *rs = ®->regset[i];
|
||||
//eprintf ("* arena %s size %d\n", r_reg_get_type (i), rs->arena->size);
|
||||
reg->size += rs->arena->size;
|
||||
if (rs && rs->arena) {
|
||||
reg->size += rs->arena->size;
|
||||
} else {
|
||||
reg->size = 0;
|
||||
}
|
||||
}
|
||||
// Align to byte boundary if needed
|
||||
//if (reg->size & 7) {
|
||||
|
Loading…
Reference in New Issue
Block a user