Skip to content

bad union syntax = parser non-termination #491

Closed
@brandonbloom

Description

@brandonbloom

there is an infinite loop in the parser. here's a reproduction:

package main

import "github.com/graph-gophers/graphql-go"

func main() {
	graphql.MustParseSchema(`type U = T`, nil)
}

There is a typo here: type U = T should have been union U = T, but this loops infinitely instead of reporting a syntax error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions