mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-11 17:16:03 +00:00
Fix off-by-one reported by @ret2libc (#8362)
half and closed ranges strikes
This commit is contained in:
parent
aa9d2bcf41
commit
514930fc3a
@ -85,7 +85,7 @@ static int onIterMap(SdbListIter *iter, RIO *io, ut64 vaddr, ut8 *buf,
|
||||
ret += t;
|
||||
}
|
||||
if (map->to < vendaddr - 1) {
|
||||
t = onIterMap (iter->p, io, map->to, buf + map->to - vaddr + 1, vendaddr - map->to - 1, match_flg, op, user);
|
||||
t = onIterMap (iter->p, io, map->to + 1, buf + map->to - vaddr + 1, vendaddr - map->to - 1, match_flg, op, user);
|
||||
if (t < 0) {
|
||||
return t;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user