Yusuke Endoh aec71b2a5b [ruby/zlib] Update the buffer length before expanding it in Deflate#params
When deflateParams returned Z_BUF_ERROR, the buffer was expanded before
the bytes just written were added to its length, so the next call wrote
over them and the length was counted twice.

Reported-by: Dániel Percze (https://hackerone.com/flashmyname)

https://github.com/ruby/zlib/commit/cba9abc7bd

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 03:41:29 +00:00
..