Add fuzz testing infrastructure with Crowbar and AFL support
- Add fuzz/ directory with comprehensive fuzz tests:
- fuzz_encoding.ml: BOM detection, encoding roundtrips
- fuzz_chomping.ml: Block scalar chomping indicators
- fuzz_tag.ml: YAML tag parsing and serialization
- fuzz_value.ml: Value type constructors and accessors
- fuzz_yamlrw.ml: Parser crash safety and roundtrips
- Add fuzz_afl.ml standalone AFL fuzzer for targeted testing
- Add seed corpus in fuzz/input/ with YAML examples
- Add dune-workspace with AFL profile (ocamlopt -afl-instrument)
- Add crowbar as test dependency
Usage:
dune build @fuzz # Quick Crowbar check
dune build --profile=afl @run-afl # Run AFL fuzzer
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This is a binary file and will not be displayed.