8000 Merge pull request #2278 from AFLplusplus/dev · AFLplusplus/AFLplusplus@4eaacfb · GitHub
[go: up one dir, main page]

65FA
Skip to content

Commit 4eaacfb

Browse files
Merge pull request #2278 from AFLplusplus/dev
Push to stable
2 parents 10db3a3 + 82b0cf0 commit 4eaacfb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

include/afl-fuzz.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ typedef struct afl_state {
747747
up to 256 */
748748

749749
unsigned long long int last_avg_exec_update;
750-
u32 last_avg_execs;
750+
u64 last_avg_total_execs;
751751
double last_avg_execs_saved;
752752

753753
/* foreign sync */

src/afl-fuzz-stats.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,9 @@ void write_stats_file(afl_state_t *afl, u32 t_bytes, double bitmap_cvg,
340340
cur_time - afl->last_avg_exec_update >= 60000))) {
341341

342342
afl->last_avg_execs_saved =
343-
(double)(1000 * (afl->fsrv.total_execs - afl->last_avg_execs)) /
343+
(double)(1000 * (afl->fsrv.total_execs - afl->last_avg_total_execs)) /
344344
(double)(cur_time - afl->last_avg_exec_update);
345-
afl->last_avg_execs = afl->fsrv.total_execs;
345+
afl->last_avg_total_execs = afl->fsrv.total_execs;
346346
afl->last_avg_exec_update = cur_time;
347347

348348
}

src/afl-fuzz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static void at_exit() {
170170

171171
if (pid2 > 0) {
172172

173-
pgrp = getpgid(pid1);
173+
pgrp = getpgid(pid2);
174174
if (pgrp > 0) { killpg(pgrp, kill_signal); }
175175
kill(pid2, kill_signal);
176176

0 commit comments

Comments
 (0)
0