-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(parser): ensure all loops advance parsing, fuzz with arbitrary by…
…tes (#828) * fix(parser): ensure all loops advance parsing * fix(parser): write root operation parsing with a loop This also fixes a case where bogus input was accepted, and did not raise a parse error: ```graphql schema { query: Query { mutation: Mutation { subscription: Subscription } ``` * chore(parser): add peek_while_kind variant for simple loops * fix(parser): add parse_separated_list helper; remove recursion from directive locations parser * add test that fails on main and is fixed here * Add fuzz target parsing arbitrary strings with token limit * fix(parser): always consume token in operation_type() parser * add failing test: stray StringValue at token limit * fix(parser): remove unwrap that may trigger with token limits * fix(parser): fix panic if token limit is reached mid-type * fix(parser): remove unwrap from enum_value parser * Use peek_while_kind * Tweak fuzz comment
- Loading branch information
1 parent
f797730
commit d545a6a
Showing
24 changed files
with
356 additions
and
189 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.