From fad8a3feb842f5c9ae2ea009b3efe57619cb051a Mon Sep 17 00:00:00 2001 From: CityOfLight77 <75525669+CityOfLight77@users.noreply.github.com> Date: Wed, 15 Dec 2021 09:22:17 +0700 Subject: [PATCH 1/2] Fix CodeQL command typo fix command to create CodeQL database and use all cores to compile CodeQL database --- utils/autodict_ql/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/autodict_ql/readme.md b/utils/autodict_ql/readme.md index f61026b7..42059f09 100644 --- a/utils/autodict_ql/readme.md +++ b/utils/autodict_ql/readme.md @@ -104,7 +104,7 @@ The usage of Autodict-QL is pretty easy. But let's describe it as: we want to compile `libxml` with codeql. Go to libxml and issue the following commands: - `./configure --disable-shared` - - `codeql create database libxml-db --language=cpp --command=make` + - `codeql database create libxml-db --language=cpp --command="make -j$(nproc)"` - Now you have the CodeQL database of the project :-) 3. The final step is to update the CodeQL database you created in step 2 (Suppose we are in `aflplusplus/utils/autodict_ql/` directory): @@ -144,4 +144,4 @@ There are 2 important points to remember: - Do not forget to set `AFL_MAX_DET_EXTRAS` at least to the number of generated dictionaries. If you forget to set this environment variable, then AFL++ uses just 200 tokens and use the rest of them only probabilistically. So this will - guarantee that your tokens will be used by AFL++. \ No newline at end of file + guarantee that your tokens will be used by AFL++. From 63087d9bd962fac2e7e76fead845e6a9392c3c49 Mon Sep 17 00:00:00 2001 From: CityOfLight77 <75525669+CityOfLight77@users.noreply.github.com> Date: Wed, 15 Dec 2021 09:24:28 +0700 Subject: [PATCH 2/2] Fix env var typo `AFL_MAX_EXRAS` -> `AFL_MAX_EXTRAS` --- docs/env_variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/env_variables.md b/docs/env_variables.md index c45f4ab9..dc79bf9e 100644 --- a/docs/env_variables.md +++ b/docs/env_variables.md @@ -397,7 +397,7 @@ checks or alter some of the more exotic semantics of the tool: target. This must be equal or larger than the size the target was compiled with. - - Setting `AFL_MAX_DET_EXRAS` will change the threshold at what number of + - Setting `AFL_MAX_DET_EXTRAS` will change the threshold at what number of elements in the `-x` dictionary and LTO autodict (combined) the probabilistic mode will kick off. In probabilistic mode, not all dictionary entries will be used all of the time for fuzzing mutations to not slow down