From e996112fbcf2051865c7d2b7334a1aae9f05f75b Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 24 Feb 2022 14:50:44 +0000 Subject: Fix build for the LLVM pass for LLVM >= 13 Due to change of inheritance for more modern LLVM versions, the overridable members are not the same. --- instrumentation/compare-transform-pass.so.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instrumentation/compare-transform-pass.so.cc b/instrumentation/compare-transform-pass.so.cc index be4dd513..cd3f0e6f 100644 --- a/instrumentation/compare-transform-pass.so.cc +++ b/instrumentation/compare-transform-pass.so.cc @@ -80,12 +80,14 @@ class CompareTransform : public ModulePass { } +#if LLVM_MAJOR < 11 #if LLVM_VERSION_MAJOR >= 4 StringRef getPassName() const override { #else const char *getPassName() const override { #endif +#endif #if LLVM_MAJOR >= 11 /* use new pass manager */ PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM); -- cgit 1.4.1 From 1840c27b6ffa8f6231e477e5cf92009f17a28c17 Mon Sep 17 00:00:00 2001 From: Adam Doupe Date: Sat, 26 Feb 2022 22:08:06 +0000 Subject: Clarify in docs that AFL_TARGET_ENV will apply to QEMU in QEMU mode, and note that QEMU_SET_ENV should be used instead in QEMU mode. Closes #1328 --- docs/env_variables.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/env_variables.md b/docs/env_variables.md index 4626a9b6..edd57fb6 100644 --- a/docs/env_variables.md +++ b/docs/env_variables.md @@ -518,7 +518,12 @@ checks or alter some of the more exotic semantics of the tool: the target binary. Example: `AFL_TARGET_ENV="VAR1=1 VAR2='a b c'" afl-fuzz ... `. This exists mostly for things like `LD_LIBRARY_PATH` but it would theoretically allow fuzzing of AFL++ itself (with 'target' AFL++ using some - AFL_ vars that would disrupt work of 'fuzzer' AFL++). + AFL_ vars that would disrupt work of 'fuzzer' AFL++). Note that when using + QEMU mode, the `AFL_TARGET_ENV` environment variables will apply to QEMU, as + well as the target binary. Therefore, in this case, you might want to use + QEMU's `QEMU_SET_ENV` environment variable (see QEMU's documentation because + the format is different from `AFL_TARGET_ENV`) to apply the environment + variables to the target and not QEMU. - `AFL_TESTCACHE_SIZE` allows you to override the size of `#define TESTCASE_CACHE` in config.h. Recommended values are 50-250MB - or more if -- cgit 1.4.1 From cd02f635db6d7bd08db11622c4dd7e7ac0889cfe Mon Sep 17 00:00:00 2001 From: vanhauser-thc Date: Mon, 28 Feb 2022 17:42:11 +0100 Subject: remove file --- TODO_LLVM | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 TODO_LLVM diff --git a/TODO_LLVM b/TODO_LLVM deleted file mode 100644 index 3dea8cca..00000000 --- a/TODO_LLVM +++ /dev/null @@ -1,10 +0,0 @@ -with LLVM 14: only new pass manager -up to LLVM 13: only old pass manager - -These do not work yet with the new pass manager: -cmplog-instructions-pass.so -compare-transform-pass.so -afl-llvm-dict2file.so -afl-llvm-lto-instrumentlist.so -SanitizerCoverageLTO.so -SanitizerCoveragePCGUARD.so -- cgit 1.4.1