fix AFL_LLVM_MAP_DYNAMIC
MODIFY
llvm_mode/afl-clang-fast.c
llvm_mode/afl-clang-fast.c
@@ -1011,6 +1011,7 @@ int main(int argc, char **argv, char **envp) {
#ifdef AFL_CLANG_FLTO
SAYF(
"\nafl-clang-lto specific environment variables:\n"
+ "AFL_LLVM_MAP_ADDR: use a fixed coverage map address (speed), e.g. 0x10000\n"
"AFL_LLVM_LTO_DONTWRITEID: don't write the highest ID used to a "
"global var\n"
"AFL_LLVM_LTO_STARTID: from which ID to start counting from for a "

MODIFY
llvm_mode/afl-llvm-lto-instrumentation.so.cc
llvm_mode/afl-llvm-lto-instrumentation.so.cc
@@ -150,7 +150,7 @@ bool AFLLTOPass::runOnModule(Module &M) {
map_addr = 0;
- } else if (map_addr == 0) {
+ } else if (getenv("AFL_LLVM_MAP_DYNAMIC")) {
FATAL(
"AFL_LLVM_MAP_ADDR and AFL_LLVM_MAP_DYNAMIC cannot be used together");

fix AFL_LLVM_MAP_DYNAMIC