Skip to content

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

Merged
rhenium merged 1 commit intoruby:maint-2.2from
bannable:ec_point_ops-raise
Dec 18, 2022
Merged

raise when EC_POINT_cmp or EC_GROUP_cmp error instead of returning true#564
rhenium merged 1 commit intoruby:maint-2.2from
bannable:ec_point_ops-raise

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!

@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants