Skip to content

Compare RBS strings as binary data - #3110

Open
OskarEichler wants to merge 1 commit into
ruby:masterfrom
OskarEichler:codex/binary-string-equality
Open

Compare RBS strings as binary data#3110
OskarEichler wants to merge 1 commit into
ruby:masterfrom
OskarEichler:codex/binary-string-equality

Conversation

@OskarEichler

Copy link
Copy Markdown
Contributor

Summary: compare equal-length internal strings as binary data so embedded NUL bytes cannot hide a later difference.\n\nReproduction: two equal-length record keys differing after an embedded NUL collapse into one before this change. The focused native-parser model retains both after the change.\n\nVerification: focused baseline/fixed model, combined RBS 4.2.0 consumer models, native hash model, and RuboCop (738 files, zero offenses).\n\nCompatibility: no API or format change; ordinary strings retain existing behavior. No tests are added in this PR.

@mame mame self-assigned this Sep 7, 2026
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.

2 participants