1dcb7acbc6 (master): [ruby/openssl] x509store, ssl: check for error of CRYPTO_set_ex_data()

0 views
Skip to first unread message

ndossche

unread,
Apr 20, 2026, 6:31:39 AM (19 hours ago) Apr 20
to ruby...@g.ruby-lang.org
ndossche 2026-04-18 12:40:04 +0000 (Sat, 18 Apr 2026)

New Revision: 1dcb7acbc6

https://github.com/ruby/ruby/commit/1dcb7acbc6

Log:
[ruby/openssl] x509store, ssl: check for error of CRYPTO_set_ex_data()

This can technically fail because it internally performs allocations.
Also confirmed by the man page [1].

[1] (among other functions on this page) https://docs.openssl.org/3.5/man3/BIO_get_ex_new_index

https://github.com/ruby/openssl/commit/c0de3f5c83

Modified files:
ext/openssl/ossl_ssl.c
ext/openssl/ossl_x509store.c
Reply all
Reply to author
Forward
0 new messages