avoid import already imported foreign corpus

If no new foreign cases, mtime_max is 0 and this incorrectly reset last
import mtime.
This commit is contained in:
Kuang-che Wu
2025-03-30 16:04:01 +00:00
parent 42465480ef
commit 950b90abcd

View File

@ -668,7 +668,12 @@ void read_foreign_testcases(afl_state_t *afl, int first) {
}
afl->foreign_syncs[iter].mtime = mtime_max;
if (mtime_max > afl->foreign_syncs[iter].mtime) {
afl->foreign_syncs[iter].mtime = mtime_max;
}
free(nl); /* not tracked */
}