diff options
| author | John Turner <jturnerusa@noreply@epenguin.net> | 2025-12-15 18:43:30 -0600 |
|---|---|---|
| committer | John Turner <jturnerusa@noreply@epenguin.net> | 2025-12-15 18:43:30 -0600 |
| commit | 6b5de6346d81729e9c6b780cccd317cc9dca650c (patch) | |
| tree | fa3dd13a0709039f144af6ab7686b93df6069648 /scripts | |
| parent | 52ce39d579e8ef0e6427b097ee0d53c692d6bc55 (diff) | |
| parent | 250a6e7b6f03ec10ddf3d75c307f373357dd622f (diff) | |
| download | gentoo-utils-6b5de6346d81729e9c6b780cccd317cc9dca650c.tar.gz | |
Merge pull request 'Add fuzzer to the pipeline' (#11) from feature/add-fuzzer-to-ci into master
Reviewed-on: https://git.epenguin.net/gentoo-utils/gentoo-utils-gitea/pulls/11
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/atom_parser_fuzz.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/atom_parser_fuzz.sh b/scripts/atom_parser_fuzz.sh new file mode 100755 index 0000000..3222a51 --- /dev/null +++ b/scripts/atom_parser_fuzz.sh @@ -0,0 +1,15 @@ +#!/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 \ + "$@" |
