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

raise when EC_POINT_cmp or EC_GROUP_cmp error instead of returning true #564

Merged
merged 1 commit into from
Dec 18, 2022

Conversation

bannable
Copy link
Contributor

@bannable bannable commented Nov 19, 2022

Instead of returning true when EC_POINT_cmp or EC_GROUP_cmp error, raise instead.

@rhenium
Copy link
Member

rhenium commented Nov 23, 2022

Good catch!

ext/openssl/ossl_pkey_ec.c Outdated Show resolved Hide resolved
ext/openssl/ossl_pkey_ec.c Outdated Show resolved Hide resolved
ext/openssl/ossl_pkey_ec.c Outdated Show resolved Hide resolved
@rhenium
Copy link
Member

rhenium commented Nov 23, 2022

The code was originally introduced in 2007. This fix should go to 2.2.x, the oldest branch we currently support.

Please rebase this on top of maint-2.2 (git rebase --onto maint-2.2 master). It should apply cleanly.

@rhenium rhenium changed the base branch from master to maint-2.2 November 23, 2022 06:06
@rhenium rhenium merged commit 3291a92 into ruby:maint-2.2 Dec 18, 2022
@rhenium
Copy link
Member

rhenium commented Dec 18, 2022

(CI failure is irrelevant, being fixed by #572.)

Thank you!

@bannable bannable deleted the ec_point_ops-raise branch December 18, 2022 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants