Skip to content

fix: No UTF-8 validation happening when portable is disabled#445

Open
EmilyMatt wants to merge 1 commit intosimd-lite:mainfrom
EmilyMatt:fallback-utf8-validation
Open

fix: No UTF-8 validation happening when portable is disabled#445
EmilyMatt wants to merge 1 commit intosimd-lite:mainfrom
EmilyMatt:fallback-utf8-validation

Conversation

@EmilyMatt
Copy link
Contributor

@EmilyMatt EmilyMatt commented Feb 24, 2026

When runtime-detection is enabled, but portable is not, we enter a code path that does NOT validate the UTF-8 input.
We then continue normally, reaching a codepath that claims that the UTF-8 was validated in the previous call(which it is, except not for the not(feature = "portable") code path

Added a fairly naive validation here, open to other suggestions.

Found by running miri on jsonchecker fail34

Copy link
Member

@Licenser Licenser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay!

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