shithub: mp3dec

Download patch

ref: 1d09620b958136aae59aca8aba98c2e8c9f7ecd2
parent: 7c1b528bbc17ebbf8a6bff0694f6e9d42b5238dd
author: lieff <[email protected]>
date: Tue Feb 27 08:46:46 EST 2018

fuzz: use asan/ubsan (AFL_HARDEN=1) is not enough

--- a/fuzzing/build.sh
+++ b/fuzzing/build.sh
@@ -1,1 +1,1 @@
-AFL_HARDEN=1 afl/afl-clang-fast fuzz.c -O2 -o fuzz
+AFL_HARDEN=1 afl/afl-clang-fast -fsanitize=address,undefined -fno-sanitize-recover=address,undefined -O2 -o fuzz fuzz.c
--- a/fuzzing/fuzz.sh
+++ b/fuzzing/fuzz.sh
@@ -1,4 +1,4 @@
 #!/usr/bin/env bash
 cd "${0%/*}"
 
-afl/afl-fuzz -m 50 -i ../vectors/fuzz -o findings ./fuzz
+afl/afl-fuzz -m none -i ../vectors/fuzz -o findings ./fuzz