mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 13:49:50 +00:00
Fix #6882 - tricore byte copy
This commit is contained in:
parent
f41e941341
commit
780b834e61
@ -18,8 +18,8 @@ static ut8 bytes[128];
|
||||
|
||||
static int tricore_buffer_read_memory (bfd_vma memaddr, bfd_byte *myaddr, ut32 length, struct disassemble_info *info) {
|
||||
int delta = memaddr - Offset;
|
||||
if (delta >= 0 && length > delta && length < sizeof(bytes)) {
|
||||
memcpy (myaddr, bytes + delta, length - delta);
|
||||
if (delta >= 0 && length + delta < sizeof(bytes)) {
|
||||
memcpy (myaddr, bytes + delta, length);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user