VDB
Sign up
MEDIUM4.3

GO-2024-3105

Stack exhaustion in all Parse functions in go/parser

Quick fix

GO-2024-3105 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.22.7

Details

Calling any of the Parse functions on Go source code which contains deeply nested literals can cause a panic due to stack exhaustion.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.22.7
Fixgo get stdlib@v1.22.7

References