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

pkey/ec: check existence of public key component before exporting #541

Merged

Conversation

rhenium
Copy link
Member

@rhenium rhenium commented Sep 2, 2022

i2d_PUBKEY_bio() against an EC_KEY without the public key component
trggers a null dereference.

This is a regression introduced by commit 56f0d34 ("pkey:
refactor #export/#to_pem and #to_der", 2017-06-14).

Fixes #527 (comment)
Fixes #369 (comment)

i2d_PUBKEY_bio() against an EC_KEY without the public key component
trggers a null dereference.

This is a regression introduced by commit 56f0d34 ("pkey:
refactor #export/#to_pem and #to_der", 2017-06-14).

Fixes ruby#527 (comment)
Fixes ruby#369 (comment)
@rhenium rhenium merged commit f54b5e5 into ruby:maint-3.0 Sep 8, 2022
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.

1 participant