mirror of
https://github.com/ruby/ruby.git
synced 2026-11-08 01:20:26 +08:00
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>