Skip to content

[pull] master from ruby:master#950

Merged
pull[bot] merged 5 commits intoturkdevops:masterfrom
ruby:master
Apr 20, 2026
Merged

[pull] master from ruby:master#950
pull[bot] merged 5 commits intoturkdevops:masterfrom
ruby:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Apr 20, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

matzbot and others added 5 commits April 20, 2026 07:26
These functions may return -2 to indicate an error according to the
manual [1]. This can also be confirmed when looking at the code as it
may call into i2d_X509_NAME() which can fail [2].
In such cases, the failure is reinterpreted as a "less than" comparison
and the error is not reported, potentially leading to wrong results in
userland code.

[1] https://manpages.opensuse.org/Tumbleweed/openssl-3-doc/X509_NAME_cmp.33ssl.en.html
[2] https://github.com/openssl/openssl/blob/f023662d1bde1fcb7fecf976b25a45afd55734b8/crypto/x509/x509_cmp.c#L269-L271

ruby/openssl@08e5547b85
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

ruby/openssl@c0de3f5c83
@pull pull bot locked and limited conversation to collaborators Apr 20, 2026
@pull pull bot added the ⤵️ pull label Apr 20, 2026
@pull pull bot merged commit 1dcb7ac into turkdevops:master Apr 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants