Skip to content

Iterate the options of pkey_ctx_apply_options without calling #each - #1161

Open
mame wants to merge 1 commit into
ruby:masterfrom
mame:pkey-options-foreach
Open

mame wants to merge 1 commit into
ruby:masterfrom
mame:pkey-options-foreach

Conversation

@mame

@mame mame commented Nov 20, 2026

Copy link
Copy Markdown
Member

The block given to #each carried the EVP_PKEY_CTX pointer, so a Hash subclass that overrides #each could retain the block and call it after the context was freed. Iterate the Hash with rb_hash_foreach instead.

The block given to #each carried the EVP_PKEY_CTX pointer, so a Hash
subclass that overrides #each could retain the block and call it after
the context was freed.  Iterate the Hash with rb_hash_foreach instead.

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