mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-02 03:05:40 +00:00
pf z, io.unalloc=true: Abort map check loop if the size-0 map is encountered (#13843)
This commit is contained in:
parent
ed8c31095c
commit
8a990cfe7a
@ -1191,6 +1191,10 @@ static void r_print_format_nulltermstring(const RPrint* p, int len, int endian,
|
||||
? p->iob.map_get (p->iob.io, addr)
|
||||
: p->iob.map_get_paddr (p->iob.io, addr))
|
||||
&& map->perm & R_PERM_R) {
|
||||
if (!map->itv.size) {
|
||||
total_map_left = addr == 0 ? UT64_MAX : UT64_MAX - addr + 1;
|
||||
break;
|
||||
}
|
||||
total_map_left += map->itv.size - (addr - (p->iob.io->va ? map->itv.addr : map->delta));
|
||||
addr += total_map_left;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user