Skip to content

Comments

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

@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

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