Fuzz: Add curated seed corpus - #2530
Open
LucaCappelletti94 wants to merge 1 commit into
Open
LucaCappelletti94 wants to merge 1 commit into
LucaCappelletti94 wants to merge 1 commit into
Conversation
54 hand-written seeds cover the statement grammar, comments, quoting and dialect-specific syntax. 141 statements are sampled and deduplicated from the dialect datasets of LucaCappelletti94/sql_ast_benchmark, re-licensed from MIT to Apache-2.0 by the same sole author. build.sh packages the seeds as <target>_seed_corpus.zip so ClusterFuzzLite code-change and batch runs start from them. Every seed parses under at least one of the 14 fuzzed dialects and round-trips cleanly through Display.
LucaCappelletti94
added this pull request to stack #2529
September 19, 2026 08:17
LucaCappelletti94
marked this pull request as ready for review
September 19, 2026 08:26
This was referenced Sep 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 4 of #2519, stacked on the roundtrip harness branch.
Adds 195 seed inputs in
fuzz/fuzz_seeds/, with some from https://github.com/LucaCappelletti94/sql_ast_benchmark and others from the test suite.build.shnow packages the directory as<target>_seed_corpus.zipnext to each binary, which is the OSS-Fuzz and ClusterFuzzLite convention, so code-change and batch runs start from it instead of from random bytes.fuzz/fuzz_seeds/*is added to the RAT exclusions.With this hot-start, the
fuzz_parse_sqlandfuzz_parse_roundtripharnesses reach cov 10938 edges (previously 3238) and 12579 (previously 3360) respectively, in the same 30 seconds window.The cluster CI job finally starts to actually mine bugs :)