shithub: mp3dec

ref: 459b8319e5839fffa6ba421b6c0efffe357f742c
dir: /scripts/fuzz_libfuzzer.sh/

View raw version
_FILENAME=${0##*/}
CUR_DIR=${0/${_FILENAME}}
CUR_DIR=$(cd $(dirname ${CUR_DIR}); pwd)/$(basename ${CUR_DIR})/

pushd $CUR_DIR/..

clang-5.0 -g -fsanitize=address,undefined -fsanitize-coverage=trace-pc-guard -DLIBFUZZER -o minimp3_libfuzz minimp3_test.c -lFuzzer -lstdc++ -lm
./minimp3_libfuzz -max_len=1024 vectors/fuzz