Merge pull request #2423 from kcwu/more-stats-sync-foreign

show stats more frequently when sync foreign
This commit is contained in:
van Hauser
2025-05-13 10:54:44 +02:00
committed by GitHub

View File

@ -659,15 +659,11 @@ void read_foreign_testcases(afl_state_t *afl, int first) {
munmap(mem, st.st_size); munmap(mem, st.st_size);
close(fd); close(fd);
if (st.st_mtime > mtime_max) { if (st.st_mtime > mtime_max) { mtime_max = st.st_mtime; }
mtime_max = st.st_mtime;
show_stats(afl); show_stats(afl);
} }
}
if (mtime_max > afl->foreign_syncs[iter].mtime) { if (mtime_max > afl->foreign_syncs[iter].mtime) {
afl->foreign_syncs[iter].mtime = mtime_max; afl->foreign_syncs[iter].mtime = mtime_max;