Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] astparser crashes on bad string #1019

Open
phob0s-pl opened this issue Dec 19, 2024 · 1 comment
Open

[BUG] astparser crashes on bad string #1019

phob0s-pl opened this issue Dec 19, 2024 · 1 comment
Labels
internally-reviewed Internally reviewed

Comments

@phob0s-pl
Copy link
Contributor

During fuzzy testing I've found out string that makes astparser crash.
Here is example of a code:

package main

import (
	parser "github.com/wundergraph/graphql-go-tools/pkg/astparser"
	parser2 "github.com/wundergraph/graphql-go-tools/v2/pkg/astparser"
)

const stringThatMakesBalaBooom = "union\"\"\""

func main() {
	parser.ParseGraphqlDocumentString(stringThatMakesBalaBooom)
	parser2.ParseGraphqlDocumentString(stringThatMakesBalaBooom)
}
@devsergiy devsergiy added the internally-reviewed Internally reviewed label Dec 30, 2024
@devsergiy
Copy link
Member

Hi @phob0s-pl

Thanks for the report!
This is an issue with early reporting that graphql document an invalid
Right now it has low-priority

If you are blocked with this issue we could provide guidance on what needs to be fixed in the parser

Thanks,
Wundergraph Team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internally-reviewed Internally reviewed
Projects
None yet
Development

No branches or pull requests

2 participants