Files
gentoo-utils-gitea/scripts/atom_parser_fuzz.sh
John Turner 250a6e7b6f
All checks were successful
Gentoo Utils / build-oci-image (push) Successful in 7s
Gentoo Utils / grep (push) Successful in 2s
Gentoo Utils / check-format (push) Successful in 8s
Gentoo Utils / docs (push) Successful in 12s
Gentoo Utils / build (push) Successful in 20s
Gentoo Utils / test (push) Successful in 29s
Gentoo Utils / fuzz (push) Successful in 47s
ci: fuzz: clean up fuzzer script a bit
2025-12-16 00:39:24 +00:00

16 lines
554 B
Bash
Executable File

#!/bin/bash
in=$(mktemp -u) || exit $?
out=$(mktemp -u) || exit $?
mkfifo ${in} ${out} || exit $?
./scripts/atom.py <${in} >${out} \
| ./build/fuzz/atom/parser/fuzzer >${in} <${out} \
./build/atom_parser_fuzzer_corpus \
-max_total_time=${FUZZER_TIMEOUT_S:-600} \
-only_ascii=1 \
-timeout=2 \
-timeout_exitcode=0 \
"$@"