Skip to content

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

Merged
Licenser merged 10 commits into
simd-lite:mainfrom
EmilyMatt:fallback-utf8-validation
Jul 8, 2026
Merged

fix: No UTF-8 validation happening when portable is disabled#445
Licenser merged 10 commits into
simd-lite:mainfrom
EmilyMatt:fallback-utf8-validation

Conversation

@EmilyMatt

@EmilyMatt EmilyMatt commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

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

PR #442 from the same bunch will fix the CI issues, so this should be rebased and merged after

@Licenser Licenser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yay!

@Licenser Licenser force-pushed the fallback-utf8-validation branch from b7d992c to d67e714 Compare March 11, 2026 06:52
This was referenced Apr 30, 2026
@Licenser Licenser enabled auto-merge (squash) July 8, 2026 14:13
@Licenser Licenser disabled auto-merge July 8, 2026 15:02
@Licenser Licenser merged commit acabe0c into simd-lite:main Jul 8, 2026
26 of 29 checks passed
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