diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-08-23 01:48:36 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-08-23 01:48:36 +0200 |
commit | 1301552101af899557a93a7535d8a57874fe6edf (patch) | |
tree | 7c97f8e12a7572b5d546d119fe9d7855ee80ccab /src/afl-fuzz-extras.c | |
parent | c4f71ab201da991fd16b2691f76020bfdb6459a4 (diff) | |
download | afl++-1301552101af899557a93a7535d8a57874fe6edf.tar.gz |
added AFL_MAX_DET_EXTRAS env var
Diffstat (limited to 'src/afl-fuzz-extras.c')
-rw-r--r-- | src/afl-fuzz-extras.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/afl-fuzz-extras.c b/src/afl-fuzz-extras.c index 1452c55e..03c5152a 100644 --- a/src/afl-fuzz-extras.c +++ b/src/afl-fuzz-extras.c @@ -248,10 +248,10 @@ static void extras_check_and_sort(afl_state_t *afl, u32 min_len, u32 max_len, } - if (afl->extras_cnt > MAX_DET_EXTRAS) { + if (afl->extras_cnt > afl->max_det_extras) { WARNF("More than %d tokens - will use them probabilistically.", - MAX_DET_EXTRAS); + afl->max_det_extras); } @@ -403,10 +403,10 @@ void add_extra(afl_state_t *afl, u8 *mem, u32 len) { /* We only want to print this once */ - if (afl->extras_cnt == MAX_DET_EXTRAS + 1) { + if (afl->extras_cnt == afl->max_det_extras + 1) { WARNF("More than %d tokens - will use them probabilistically.", - MAX_DET_EXTRAS); + afl->max_det_extras); } |