This directory contains source code and build scripts for coverage-guided fuzzers.
Detailed instructions are available at: https://github.com/google/oss-fuzz/blob/master/docs/
sudo adduser $USER docker
docker pull gcr.io/oss-fuzz-base/base-builder
docker build -t ossfuzz/cras -f cras/src/fuzz/Dockerfile .
Add --no-cache
if you want a complete rebuild.
docker run --cap-add=SYS_PTRACE -ti --rm -v /tmp/fuzzers:/out ossfuzz/cras
docker run --cap-add=SYS_PTRACE -ti -v $(pwd)/cras/src/fuzz/corpus:/corpus \ -v /tmp/fuzzers:/out ossfuzz/cras /out/rclient_message \ /corpus -runs=100
Go into docker console by
docker run --cap-add=SYS_PTRACE -ti -v $(pwd)/cras/src/fuzz/corpus:/corpus \ -v /tmp/fuzzers:/out ossfuzz/cras /bin/bash
and start debugging.