mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 11:28:08 +00:00
skip large files, dont bail
This commit is contained in:
2
TODO.md
2
TODO.md
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## Roadmap 2.67+
|
## Roadmap 2.67+
|
||||||
|
|
||||||
|
- pre_save custom module example to save away test cases
|
||||||
|
- expand on AFL_LLVM_INSTRUMENT_FILE to also support sancov allowlist format
|
||||||
- allow to sync against honggfuzz and libfuzzer
|
- allow to sync against honggfuzz and libfuzzer
|
||||||
- AFL_MAP_SIZE for qemu_mode and unicorn_mode
|
- AFL_MAP_SIZE for qemu_mode and unicorn_mode
|
||||||
- namespace for targets? e.g. network
|
- namespace for targets? e.g. network
|
||||||
|
@ -466,7 +466,7 @@ void read_testcases(afl_state_t *afl) {
|
|||||||
ACTF("Scanning '%s'...", afl->in_dir);
|
ACTF("Scanning '%s'...", afl->in_dir);
|
||||||
|
|
||||||
/* We use scandir() + alphasort() rather than readdir() because otherwise,
|
/* We use scandir() + alphasort() rather than readdir() because otherwise,
|
||||||
the ordering of test cases would vary somewhat randomly and would be
|
the ordering of test cases would vary somewhat randomly and would be
|
||||||
difficult to control. */
|
difficult to control. */
|
||||||
|
|
||||||
nl_cnt = scandir(afl->in_dir, &nl, NULL, alphasort);
|
nl_cnt = scandir(afl->in_dir, &nl, NULL, alphasort);
|
||||||
@ -527,9 +527,10 @@ void read_testcases(afl_state_t *afl) {
|
|||||||
|
|
||||||
if (st.st_size > MAX_FILE) {
|
if (st.st_size > MAX_FILE) {
|
||||||
|
|
||||||
FATAL("Test case '%s' is too big (%s, limit is %s)", fn2,
|
WARNF("Test case '%s' is too big (%s, limit is %s), skipping", fn2,
|
||||||
stringify_mem_size(val_buf[0], sizeof(val_buf[0]), st.st_size),
|
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));
|
stringify_mem_size(val_buf[1], sizeof(val_buf[1]), MAX_FILE));
|
||||||
|
continue;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user