Skip to content

Fix countCodePoints range scan for non-zero offsets#187

Merged
dain merged 1 commit intoairlift:masterfrom
dain:user/dain/fix-countCodePoints
Mar 6, 2026
Merged

Fix countCodePoints range scan for non-zero offsets#187
dain merged 1 commit intoairlift:masterfrom
dain:user/dain/fix-countCodePoints

Conversation

@dain
Copy link
Member

@dain dain commented Mar 6, 2026

countCodePoints(Slice, offset, length) mixed absolute and relative bounds when chunk-scanning, so non-zero offsets could scan the wrong byte window and return incorrect code point counts.

countCodePoints(Slice, offset, length) mixed absolute and relative
bounds when chunk-scanning, so non-zero offsets could scan the wrong
byte window and return incorrect code point counts.
@dain dain requested review from electrum and wendigo March 6, 2026 00:38
@dain dain merged commit e298c75 into airlift:master Mar 6, 2026
1 check passed
@dain dain deleted the user/dain/fix-countCodePoints branch March 6, 2026 02:02
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