summaryrefslogtreecommitdiff
path: root/include/ruby/internal/encoding
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2025-01-29 23:08:40 +0900
committergit <svn-admin@ruby-lang.org>2025-01-29 17:14:41 +0000
commit1b731c1f439c73f98d49b476b859a6ec22c81da0 (patch)
treea65c08bf80a2dad62cfeaeee54fadcad8301707e /include/ruby/internal/encoding
parent81c83fd79f8abed2bd000fea6e75c3ad9ab0e662 (diff)
[ruby/openssl] pkey: avoid calling i2d_PUBKEY family on an incomplete 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 <https://github.com/ruby/openssl/issues/845>. https://github.com/ruby/openssl/commit/5aeed935e5
Diffstat (limited to 'include/ruby/internal/encoding')
0 files changed, 0 insertions, 0 deletions