Skip to content

Fix TOCTOU issues involving implicit type conversion#1081

Open
rhenium wants to merge 1 commit into
ruby:masterfrom
rhenium:ky/implicit-conversion-reorder
Open

Fix TOCTOU issues involving implicit type conversion#1081
rhenium wants to merge 1 commit into
ruby:masterfrom
rhenium:ky/implicit-conversion-reorder

Conversation

@rhenium

@rhenium rhenium commented Jul 7, 2026

Copy link
Copy Markdown
Member

A user can supply objects with malicious #to_str or #to_int methods to trigger a use-after-free. Reorder the input validation to prevent this.

This uses ruby/ruby#17707

A user can supply objects with malicious #to_str or #to_int methods to
trigger a use-after-free. Reorder the input validation to prevent this.
@rhenium rhenium force-pushed the ky/implicit-conversion-reorder branch from 6675b33 to 07a32cc Compare July 7, 2026 15:08
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