mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 11:28:08 +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) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mtime_max > afl->foreign_syncs[iter].mtime) {
|
||||||
|
|
||||||
afl->foreign_syncs[iter].mtime = mtime_max;
|
afl->foreign_syncs[iter].mtime = mtime_max;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
free(nl); /* not tracked */
|
free(nl); /* not tracked */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user