diff options
author | Roman M. Iudichev <SecNotice@ya.ru> | 2021-05-07 18:32:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 17:32:17 +0200 |
commit | 069e61dfc67050154b649ba286552b563b27e9ba (patch) | |
tree | e1568875c10a04ec281369e248c947cc8c3fbc5a /test | |
parent | 2fd96294780f016a5b2533f0c1826a07dbbac2a8 (diff) | |
download | afl++-069e61dfc67050154b649ba286552b563b27e9ba.tar.gz |
Exit on time (#904)
* Variable AFL_EXIT_ON_TIME description has been added. Variables AFL_EXIT_ON_TIME and afl_exit_on_time has been added. afl->exit_on_time variable initialization has been added. The asignment of a value to the afl->afl_env.afl_exit_on_time variable from environment variables has been added. Code to exit on timeout if new path not found has been added. * Type of afl_exit_on_time variable has been changed. Variable exit_on_time has been added to the afl_state_t structure. * Command `export AFL_EXIT_WHEN_DONE=1` has been added. * Millisecond to second conversion has been added. Call get_cur_time() has been added. * Revert to using the saved current time value. * Useless check has been removed.
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-performance.sh | 1 | ||||
-rwxr-xr-x | test/test-pre.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/test-performance.sh b/test/test-performance.sh index cd9f6caf..d61e2f2a 100755 --- a/test/test-performance.sh +++ b/test/test-performance.sh @@ -18,6 +18,7 @@ export AFL_QUIET=1 export AFL_PATH=`pwd`/.. unset AFL_EXIT_WHEN_DONE +unset AFL_EXIT_ON_TIME unset AFL_SKIP_CPUFREQ unset AFL_DEBUG unset AFL_HARDEN diff --git a/test/test-pre.sh b/test/test-pre.sh index 174f2f7f..7819da47 100755 --- a/test/test-pre.sh +++ b/test/test-pre.sh @@ -62,6 +62,7 @@ $ECHO \\101 2>&1 | grep -qE '^A' || { test -z "$ECHO" && { printf Error: printf command does not support octal character codes ; exit 1 ; } export AFL_EXIT_WHEN_DONE=1 +export AFL_EXIT_ON_TIME=60 export AFL_SKIP_CPUFREQ=1 export AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1 unset AFL_NO_X86 |