summary refs log tree commit diff
path: root/afl-dyninst-env.m4
diff options
context:
space:
mode:
Diffstat (limited to 'afl-dyninst-env.m4')
-rw-r--r--afl-dyninst-env.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/afl-dyninst-env.m4 b/afl-dyninst-env.m4
new file mode 100644
index 0000000..98d6962
--- /dev/null
+++ b/afl-dyninst-env.m4
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Environment setup (to afl-fuzz) the instrumented binary
+# SPDX-FileCopyrightText: 2018-2021 Marc "van Hauser" Heuse <vh@thc.org>
+# SPDX-FileCopyrightText: 2024 Nguyễn Gia Phong <cnx@loang.net>
+# SPDX-License-Identifier: Apache-2.0
+export LD_LIBRARY_PATH="AFL_DYNINST_LIB:DYNINST_LIB:$LD_LIBRARY_PATH"
+export AFL_SKIP_BIN_CHECK=1
+export AFL_MAP_SIZE=65536
+$*
+# vim: filetype=sh.m4