-
Notifications
You must be signed in to change notification settings - Fork 15
/
afl-sh-profile
executable file
·35 lines (25 loc) · 1.01 KB
/
afl-sh-profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
export CC=afl-gcc
export CXX=afl-g++
# NOTE: we're skipping tests to speed things up.
export DEB_BUILD_OPTIONS=nocheck
# Exit AFL if we hadn't seen any new paths for a long time.
export AFL_EXIT_WHEN_DONE=1
# Use ASAN - Address SANitizer. This will crash on subtle memory errors.
AFL_USE_ASAN=1
# No idea if it's actually necessary if we have ASAN - if you have an opinion,
# let me know.
export AFL_HARDEN=1
export FORCE_UNSAFE_CONFIGURE=1 # for coreutils root build check.
# we don't need leak checks while building
export ASAN_OPTIONS=detect_leaks=0,abort_on_error=1,symbolize=0
# In case of e.g. gimp, dpkg-gensymbols complains after having detected new
# symbols introduced by AFL. Let's disable the check.
export DPKG_GENSYMBOLS_CHECK_LEVEL=0
# I don't like to deal with cpufreq, let's just ignore it. Feel free to remove
# this line if you like.
export AFL_SKIP_CPUFREQ=1
# We overwrote /usr/bin/gcc, so we need to specify AFL_CC to avoid afl-gcc
# calling itself.
#
# NOTE: This is generated in Dockerfile.