diff options
author | hexcoder- <heiko@hexco.de> | 2020-10-15 23:30:55 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-10-15 23:30:55 +0200 |
commit | fffe53136cae30316db1578b3d7f09fca3b5bc47 (patch) | |
tree | 164c459249735d1a259b4fe4578c19daeffb05b4 /src/afl-fuzz-init.c | |
parent | bded51e4eaaa4148516a407b68264e424d0fbbd5 (diff) | |
parent | 190a9cf1e4e6cd08f83acbb9d893688b5fb00f3d (diff) | |
download | afl++-fffe53136cae30316db1578b3d7f09fca3b5bc47.tar.gz |
Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r-- | src/afl-fuzz-init.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index 881bf10f..13e42e03 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -272,7 +272,7 @@ void bind_to_free_cpu(afl_state_t *afl) { #elif defined(__DragonFly__) - if (procs[i].kp_lwp.kl_cpuid < sizeof(cpu_used) && + if (procs[i].kp_lwp.kl_cpuid < (s32)sizeof(cpu_used) && procs[i].kp_lwp.kl_pctcpu > 10) cpu_used[procs[i].kp_lwp.kl_cpuid] = 1; @@ -1045,7 +1045,7 @@ restart_outer_cull_loop: while (q) { - if (q->cal_failed || !q->exec_cksum) continue; + if (q->cal_failed || !q->exec_cksum) { goto next_entry; } restart_inner_cull_loop: @@ -1090,6 +1090,8 @@ restart_outer_cull_loop: } + next_entry: + prev = q; q = q->next; |