mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-11 23:16:05 +00:00
Another RRegArena bugfix
This commit is contained in:
parent
341da1d154
commit
87a63e5a02
@ -16,8 +16,9 @@ R_API ut8* r_reg_get_bytes(RReg *reg, int type, int *size) {
|
||||
arena = reg->regset[i].arena;
|
||||
sz += arena->size;
|
||||
buf = realloc (buf, sz);
|
||||
memcpy (buf+osize, arena->bytes, arena->size-osize);
|
||||
osize += sz;
|
||||
if (!buf) break;
|
||||
memcpy (buf+osize, arena->bytes, arena->size);
|
||||
osize = sz;
|
||||
}
|
||||
if (size)
|
||||
*size = sz;
|
||||
|
Loading…
Reference in New Issue
Block a user