Skip to content

[pull] master from ruby:master#890

Merged
pull[bot] merged 1 commit intoturkdevops:masterfrom
ruby:master
Mar 27, 2026
Merged

[pull] master from ruby:master#890
pull[bot] merged 1 commit intoturkdevops:masterfrom
ruby:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Mar 27, 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 : )

…ompare

StringValue() can invoke an object's #to_str method, which may execute
arbitrary Ruby code. If #to_str mutates the other string argument during
comparison, its buffer may be reallocated, leaving a previously obtained
RSTRING_PTR pointing to freed memory.

This patch calls StringValue() on both arguments before retrieving their
data pointers to prevent a potential use-after-free.

ruby/openssl@c82c28c663
@pull pull bot locked and limited conversation to collaborators Mar 27, 2026
@pull pull bot added the ⤵️ pull label Mar 27, 2026
@pull pull bot merged commit 998e2f4 into turkdevops:master Mar 27, 2026
1 check failed
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.

0 participants