forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits

seed.sh10 lines, 408 bytesHistoryRawDownload
1#!/usr/bin/env bash
2# seed.sh: fill fuzz/corpus/<target>/ from the committed ec-dts fixtures (corpus is git-ignored).
3set -euo pipefail
4D=$(cd -- "$(dirname -- "$0")" && pwd)
5for t in decode_stream parse_header; do mkdir -p "$D/corpus/$t"; done
6for f in "$D"/../fixtures/*.dts; do
7 b=$(basename "$f")
8 head -c 20000 "$f" > "$D/corpus/decode_stream/$b"
9 head -c 256 "$f" > "$D/corpus/parse_header/$b"
10done