Skip to content

Reject a negative length in Zlib.crc32_combine - #160

Open
mame wants to merge 1 commit into
ruby:masterfrom
mame:zlib-crc32-combine-negative
Open

mame wants to merge 1 commit into
ruby:masterfrom
mame:zlib-crc32-combine-negative

Conversation

@mame

@mame mame commented Oct 24, 2026

Copy link
Copy Markdown
Member

zlib 1.3.1 loops forever in x2nmodp() on a negative length, and the loop cannot be interrupted.

  Zlib.crc32_combine(0, 0, -1)
  #=> never returns (with zlib 1.3.1)

zlib 1.3.1 loops forever in x2nmodp() on a negative length, and the
loop cannot be interrupted.

  Zlib.crc32_combine(0, 0, -1)
  #=> never returns (with zlib 1.3.1)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant