diff options
author | van Hauser <vh@thc.org> | 2021-01-19 10:41:42 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2021-01-19 10:41:42 +0100 |
commit | e91f3b0de65376b001d45892cc6bdd2fcafde949 (patch) | |
tree | 8d257efdbf7ccad132714899e8c61e68aefa1afb | |
parent | e2d9dc16e3d856b416aa7c84bf10242334c860c9 (diff) | |
download | afl++-e91f3b0de65376b001d45892cc6bdd2fcafde949.tar.gz |
codeql fix
-rw-r--r-- | docs/Changelog.md | 1 | ||||
-rw-r--r-- | src/afl-fuzz-run.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/Changelog.md b/docs/Changelog.md index e0f8e9bf..60f09ca5 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -19,6 +19,7 @@ sending a mail to <afl-users+subscribe@googlegroups.com>. for reporting) - if determinstic mode is active (-D, or -M without -d) then we sync after every queue entry as this can take very long time otherwise + - better detection if a target needs a large shared map - switched to a faster RNG - added hghwng's patch for faster trace map analysis - afl-cc diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c index b597488b..17c305ed 100644 --- a/src/afl-fuzz-run.c +++ b/src/afl-fuzz-run.c @@ -424,7 +424,7 @@ u8 calibrate_case(afl_state_t *afl, struct queue_entry *q, u8 *use_mem, if (unlikely(afl->fixed_seed)) { - diff_us = (afl->fsrv.exec_tmout - 1) * afl->stage_max; + diff_us = (u64)(afl->fsrv.exec_tmout - 1) * (u64)afl->stage_max; } else { |