VDB
Sign up
—

GO-2022-0316

Incorrect calculation in github.com/open-policy-agent/opa

Quick fix

GO-2022-0316 — github.com/open-policy-agent/opa: upgrade to the fixed version with the command below.

go get github.com/open-policy-agent/opa@v0.37.2

Details

Pretty-printing an AST that contains synthetic nodes can change the logic of some statements by reordering array literals.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/open-policy-agent/opa
Introduced in: 0.33.1Fixed in: 0.37.2
Fixgo get github.com/open-policy-agent/opa@v0.37.2

References