wave 7: fuzz sidecar scaffold (fuzz/ workspace, shared crate, runner, dict, seeds skeleton)

This commit is contained in:
glm-5.3-flash committed 2026-10-10 21:02:06 +00:00
1 parent 67d1d7e34f
commit 62ff18d1ed
14 files changed
+614 -15

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
#!/usr/bin/env python3
"""Regenerate the committed seed corpora for alkstore's fuzz targets.
Writes into fuzz/corpus/<target>/. Deterministic: fixed inputs only, no
randomness. Run from the repo root:
python3 fuzz/gen_fuzz_seeds.py
Target seed functions and the main() registry land here with the
target tasks; the shared seed_name()/write_seed() plumbing is stable.
"""
import os
def seed_name(target, i):
return os.path.join("fuzz", "corpus", target, f"seed-{i:03d}")
def write_seed(target, i, data):
path = seed_name(target, i)
os.makedirs(os.path.dirname(path), exist_ok=True)
with open(path, "wb") as f:
f.write(data)
def main():
pass
if __name__ == "__main__":
main()