mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 20:22:38 +00:00
Fix r_io_map_add to be less restrictive
To allow this air:vsf alvaro$ r2 ../../bins/vsf/c128-rhps-norom.vsf -- This page intentionally left blank. [0x0000ff2f]> S [00:00] * pa=0x0000008c mrwx va=0x00000000 sz=0x10000 vsz=0x10000 RAM_BANK_0 [00:01] * pa=0x0001008c mrwx va=0x00000000 sz=0x10000 vsz=0x10000 RAM_BANK_1 [0x0000ff2f]> om 2 fd: 3 +0x0000008c 0x00000000 - 0x0000ffff -r-x fmap.RAM_BANK_0 1 fd: 3 +0x0001008c 0x00000000 - 0x0000ffff -r-x fmap.RAM_BANK_1
This commit is contained in:
parent
7c90d05bef
commit
82de0bea57
@ -232,7 +232,8 @@ R_API RIOMap* r_io_map_add(RIO* io, int fd, int flags, ut64 delta, ut64 addr, ut
|
||||
SdbListIter* iter;
|
||||
RIOMap* map;
|
||||
ls_foreach (io->maps, iter, map) {
|
||||
if (map->fd == fd && map->from == addr) {
|
||||
if (map->fd == fd && map->from == addr &&
|
||||
map->to == addr + size - 1 && map->delta == delta) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user