mirror of
https://github.com/ruby/ruby.git
synced 2026-11-08 01:20:26 +08:00
Take RSTRING_PTR() of the input buffer after resizing the output buffer, as the input and output buffers may be the same String object. Also explicitly reject in-place Cipher#update when the input is too large to process in a single EVP_CipherUpdate() call. We should not implicitly split the input across multiple calls for in-place operation because this appears to be unreliable. Reported by TheSecguy <thesecguy45@gmail.com>. https://github.com/ruby/openssl/commit/8df76d73ba