Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

topdown/tokens: protect against nistec panics #5214

Merged
merged 3 commits into from
Oct 6, 2022

Conversation

srenatus
Copy link
Contributor

@srenatus srenatus commented Oct 6, 2022

With Golang 1.19, the code used in crypto/elliptic has switched to nistec, and this introduced new panics where there hadn't been any before.

To play along with this, we're adding defer/recover constructs. It's only about bad inputs; none of those offending points could ever be valid.

With Golang 1.19, the code used in crypto/elliptic has switched to nistec, and
this introduced new panics where there hadn't been any before.

To play along with this, we're adding defer/recover constructs. It's only about
bad inputs; none of those offending points could ever be valid.

Signed-off-by: Stephan Renatus <[email protected]>
@srenatus srenatus merged commit 94baa1b into open-policy-agent:main Oct 6, 2022
@srenatus srenatus deleted the sr/topdown/tokens branch October 6, 2022 15:47
byronic pushed a commit to byronic/opa that referenced this pull request Oct 17, 2022
With Golang 1.19, the code used in crypto/elliptic has switched to nistec, and
this introduced new panics where there hadn't been any before.

To play along with this, we're adding defer/recover constructs. It's only about
bad inputs; none of those offending points could ever be valid.

Signed-off-by: Stephan Renatus <[email protected]>
Signed-off-by: Byron Lagrone <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants