VDB
KO

GO-2024-3107

Stack exhaustion in Parse in go/build/constraint

Quick fix

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

go get stdlib@v1.22.7

Details

Calling Parse on a "// +build" build tag line with deeply nested expressions 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: 0 Fixed in: 1.22.7
Fix go get stdlib@v1.22.7

References