You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.
$CARGO fuzz run libfuzzer -- -timeout=1 >/dev/null || true
if ! exists cargo-afl; then
cargo install afl
fi
ROOT="$(git rev-parse --show-toplevel)"
cd "$ROOT/fuzz"
if ! [ "$(cat /proc/sys/kernel/core_pattern)" = "core" ]; then
echo "If this prompts you for sudo access, it's because your system is set up to send core dumps to apport instead of the parent process"
echo "See https://stackoverflow.com/questions/35441062/afl-fuzzing-without-root-avoid-modifying-proc-sys-kernel-core-pattern#35470012 if you want more details"
echo "If you don't want to run sudo from strange scripts, run the following command and you won't be prompted again"
echo "echo core | sudo tee /proc/sys/kernel/core_pattern"
echo core | sudo tee /proc/sys/kernel/core_pattern
fi
for f in $(find "$ROOT/tests/runner-tests/" -type f -name '*.c'); do cp "$f" afl/inputs/"$(echo "$f" | tr / _)"; done