• Home
  • Raw
  • Download

Lines Matching +full:linux +full:- +full:32 +full:- +full:no +full:- +full:asm

7 ---------
13 -----------------------------------
15 Install `clang`, which [ships with `libfuzzer`](http://llvm.org/docs/LibFuzzer.html#fuzzer-usage)
18 sudo apt-get install clang
23 `/usr/lib/llvm-7/lib/clang/7.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a`.
25 CC=clang ./config enable-fuzz-libfuzzer \
26 --with-fuzzer-lib=$PATH_TO_LIBFUZZER \
27 -DPEDANTIC enable-asan enable-ubsan no-shared \
28 -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION \
29 -fsanitize=fuzzer-no-link \
30 enable-ec_nistp_64_gcc_128 -fno-sanitize=alignment \
31 enable-weak-ssl-ciphers enable-rc5 enable-md2 \
32 enable-ssl3 enable-ssl3-method enable-nextprotoneg \
33 --debug
37 sudo apt-get install make
39 LDCMD=clang++ make -j4
49 `fuzz/corpora/$FUZZER-crash/`.
51 With `clang` from source/pre-built binaries
52 -------------------------------------------
54 You may also wish to use a pre-built binary from the [LLVM Download
59 a `--with-fuzzer-include` option, which should be the parent directory of the
62 CC=clang ./config enable-fuzz-libfuzzer \
63 --with-fuzzer-include=$PATH_TO_LIBFUZZER_DIR \
64 --with-fuzzer-lib=$PATH_TO_LIBFUZZER \
65 -DPEDANTIC enable-asan enable-ubsan no-shared \
66 -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION \
67 -fsanitize=fuzzer-no-link \
68 enable-ec_nistp_64_gcc_128 -fno-sanitize=alignment \
69 enable-weak-ssl-ciphers enable-rc5 enable-md2 \
70 enable-ssl3 enable-ssl3-method enable-nextprotoneg \
71 --debug
74 ---
80 sudo apt-get install afl-clang
81 CC=afl-clang-fast ./config enable-fuzz-afl no-shared no-module \
82 -DPEDANTIC enable-tls1_3 enable-weak-ssl-ciphers enable-rc5 \
83 enable-md2 enable-ssl3 enable-ssl3-method enable-nextprotoneg \
84 enable-ec_nistp_64_gcc_128 -fno-sanitize=alignment \
85 --debug
89 The following options can also be enabled: enable-asan, enable-ubsan, enable-msan
93 afl-fuzz -i fuzz/corpora/$FUZZER -o fuzz/corpora/$FUZZER/out fuzz/$FUZZER
98 ------------------
101 the fuzz/*-test binaries and the file generated by the fuzzer. They binaries
102 don't need to be built for fuzzing, there is no need to set CC or the call
103 config with enable-fuzz-* or -fsanitize-coverage, but some of the other options
104 above might be needed. For instance the enable-asan or enable-ubsan option might
106 it might be needed to use -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION to
111 fuzz/$FUZZER-test $file
115 fuzz/asn1-test fuzz/corpora/asn1
128 --------------
134 no code has been modified.
147 ----------------
154 -------------------
158 - The options as documented above
159 - Without enable-ec_nistp_64_gcc_128 and without --debug
160 - With no-asm
161 - Using 32 bit
162 - A default config, plus options needed to generate the fuzzer.
168 ---------------------
175 fuzz/$FUZZER -merge=1 fuzz/corpora/NEWDIR fuzz/corpora/DIR