-
Notifications
You must be signed in to change notification settings - Fork 174
SEGV with OpenSSL::PKey::DSA.new.to_s
#845
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
Comments
This is similar to #168. Calling When it's compiled with OpenSSL 3.0 or later, |
Call ossl_pkey_check_public_key() to ensure that EVP_PKEY_missing_parameters() passes. This check should be cheap. DSA#{to_der,to_pem,export,to_s} and PKey#{public_to_der,public_to_pem} cause a segfault if the receiver is an empty DSA instance with no parameters set. Fixes <ruby#845>.
Call ossl_pkey_check_public_key() to ensure that EVP_PKEY_missing_parameters() passes. This check should be cheap. DSA#{to_der,to_pem,export,to_s} and PKey#{public_to_der,public_to_pem} cause a segfault if the receiver is an empty DSA instance with no parameters set. Fixes <ruby#845>.
Call ossl_pkey_check_public_key() to ensure that EVP_PKEY_missing_parameters() passes. This check should be cheap. DSA#{to_der,to_pem,export,to_s} and PKey#{public_to_der,public_to_pem} cause a segfault if the receiver is an empty DSA instance with no parameters set. Fixes <ruby#845>.
… key Call ossl_pkey_check_public_key() to ensure that EVP_PKEY_missing_parameters() passes. This check should be cheap. DSA#{to_der,to_pem,export,to_s} and PKey#{public_to_der,public_to_pem} cause a segfault if the receiver is an empty DSA instance with no parameters set. Fixes <ruby/openssl#845>. ruby/openssl@5aeed935e5
@rhenium I noticed this issue while exploring the RBS of OpenSSL and testing its API. |
ruby -v:
ruby 3.5.0dev (2025-01-22T23:39:50Z master 9bec592cc4) +PRISM [arm64-darwin23]
openssl -v:
OpenSSL 3.4.0 22 Oct 2024 (Library: OpenSSL 3.4.0 22 Oct 2024)
OpenSSL gem: 3.3.0(a1012fc)
OS: macOS
Repro
core dump
The text was updated successfully, but these errors were encountered: