Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak UTF-8 validation 'roll back' logic #621

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

clyring
Copy link
Member

@clyring clyring commented Oct 26, 2023

Fixes #620. We must roll back some if the last SIMD block contains an incomplete multi-byte code point. The old logic for this would roll back by one even if there were zero SIMD blocks processed, which is exactly the bug.

Fixes haskell#620.  We must roll back some if the last SIMD block
contains an incomplete multi-byte code point.  The old logic
for this would roll back by one even if there were zero SIMD
blocks processed, which is exactly the bug.
clyring added a commit that referenced this pull request Oct 27, 2023
Fixes #620.  We must roll back some if the last SIMD block
contains an incomplete multi-byte code point.  The old logic
for this would roll back by one even if there were zero SIMD
blocks processed, which is exactly the bug.
@clyring clyring merged commit 03733af into haskell:master Oct 27, 2023
20 of 24 checks passed
@clyring clyring modified the milestones: 0.12.1.0, 0.11.5.3 Jan 30, 2024
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.

isValidUtf8 is broken
2 participants