mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
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:
@ -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 */
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user