summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2024-12-10 23:06:00 +0900
committerKazuki Yamaguchi <k@rhe.jp>2024-12-22 03:33:03 +0900
commit637f019f1f7611ba41f761a1b17e4228661d0a5b (patch)
tree2cfbd64f2f6ffb7d5be26009410569b6d3b15a14 /include/ruby
parentc79b4354074742ca1cbbb25a4f04bbffeb58407d (diff)
[ruby/openssl] cipher: make output buffer String independent
OpenSSL::Cipher#update accepts a String as the second argument to be used as the output buffer. The buffer must be directly writable, in other words, it must not be frozen and not a shared string. rb_str_resize() does not make the String independent if the String already has the intended length. Use the rb_str_modify() family instead to check it. Fixes: https://bugs.ruby-lang.org/issues/20937 https://github.com/ruby/openssl/commit/1de3b80a46
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12421
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions