Skip to content

Hide the dictionaries of Zlib::Inflate from Ruby - #158

Open
mame wants to merge 1 commit into
ruby:masterfrom
mame:zlib-hide-dictionaries
Open

mame wants to merge 1 commit into
ruby:masterfrom
mame:zlib-hide-dictionaries

Conversation

@mame

@mame mame commented Oct 24, 2026

Copy link
Copy Markdown
Member

They were kept in @Dictionaries, which can be replaced with a non-Hash.

  z = Zlib::Inflate.new
  z.instance_variable_set(:@dictionaries, 1)
  z.add_dictionary("foo")
  #=> [BUG] Segmentation fault at 0x0000000000000003

They were kept in @Dictionaries, which can be replaced with a non-Hash.

  z = Zlib::Inflate.new
  z.instance_variable_set(:@Dictionaries, 1)
  z.add_dictionary("foo")
  #=> [BUG] Segmentation fault at 0x0000000000000003

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