mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
non-unix compat
This commit is contained in:
@ -710,13 +710,14 @@ void read_testcases(afl_state_t *afl, u8 *directory) {
|
||||
|
||||
}
|
||||
|
||||
if (nl_cnt) {
|
||||
|
||||
i = nl_cnt;
|
||||
do {
|
||||
|
||||
--i;
|
||||
|
||||
struct stat st;
|
||||
|
||||
u8 dfn[PATH_MAX];
|
||||
snprintf(dfn, PATH_MAX, "%s/.state/deterministic_done/%s", afl->in_dir,
|
||||
nl[i]->d_name);
|
||||
@ -753,7 +754,8 @@ void read_testcases(afl_state_t *afl, u8 *directory) {
|
||||
|
||||
if (st.st_size > MAX_FILE) {
|
||||
|
||||
WARNF("Test case '%s' is too big (%s, limit is %s), partial reading", fn2,
|
||||
WARNF("Test case '%s' is too big (%s, limit is %s), partial reading",
|
||||
fn2,
|
||||
stringify_mem_size(val_buf[0], sizeof(val_buf[0]), st.st_size),
|
||||
stringify_mem_size(val_buf[1], sizeof(val_buf[1]), MAX_FILE));
|
||||
|
||||
@ -806,6 +808,8 @@ void read_testcases(afl_state_t *afl, u8 *directory) {
|
||||
|
||||
} while (i > 0);
|
||||
|
||||
}
|
||||
|
||||
free(nl); /* not tracked */
|
||||
|
||||
if (!afl->queued_paths && directory == NULL) {
|
||||
|
Reference in New Issue
Block a user