You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(parser): ensure all loops advance parsing, fuzz with arbitrary bytes (#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
0 commit comments