about summary refs log tree commit diff
path: root/afl-dyninst-env.m4
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2024-11-04 16:49:47 +0900
committerNguyễn Gia Phong <cnx@loang.net>2024-11-04 17:10:03 +0900
commitf9d644e7f357a21aa64a5de27408b74cbd345dc8 (patch)
tree7829136efbd1f4b12816f884af2c053b54a7704f /afl-dyninst-env.m4
parentcff2d88f97f983683f4caf0e8f87a4f858b486be (diff)
downloadafl-dyninst-f9d644e7f357a21aa64a5de27408b74cbd345dc8.tar.gz
Rework build recipe
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