mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-08 08:11:34 +00:00
Fix map list iteration.
This commit is contained in:
parent
1aa7c87ea8
commit
c671ecb511
@ -273,7 +273,7 @@ static void __tokencap_load_mappings(void) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (c = map; c++; r -= sizeof(prmap_t)) {
|
for (c = map; r > 0; c++ , r -= sizeof(prmap_t)) {
|
||||||
|
|
||||||
__tokencap_ro[__tokencap_ro_cnt].st = c->pr_vaddr;
|
__tokencap_ro[__tokencap_ro_cnt].st = c->pr_vaddr;
|
||||||
__tokencap_ro[__tokencap_ro_cnt].en = c->pr_vaddr + c->pr_size;
|
__tokencap_ro[__tokencap_ro_cnt].en = c->pr_vaddr + c->pr_size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user