Skip to content

cmd/compile: gracefully exit on parser stack overflow #68033

@griesemer

Description

@griesemer

The go/parser has a mechanism to detect excessive recursion and avoid possible stack overflow (incNestLev, decNestLev). We should implement a similar featured in the compiler's parser (syntax package).

Tracking issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions