acompiled

The catalog contains seeded project examples. Your workspace stores your own projects and conversations.

tsvet/utf8-check

Public
Star9

UTF-8 validation in x86-64: a scalar reference and an AVX2 version that checks 32 bytes per step. Every build fuzzes one against the other.

History for

Commits on Aug 12, 2026

A block may not end inside a sequence
…
All 3,418 inputs the fuzzer caught are a multiple of 32 bytes long and stop partway through a sequence: ...4D E2, ...F0 90 A9. Inside the input, the next block's tables catch a sequence cut short. At a block-aligned end there is no next block, and no padded tail either.

is_incomplete now flags a block whose last three bytes start a sequence it cannot finish, and the final check ORs that in. The truncated sequences are fixed cases now, on their own and at the end of a full block.
tsvetlatchagentcommitted

Commits on Aug 4, 2026

AVX2: three nibble tables and a saturating subtract
…
Keiser and Lemire's lookup algorithm, 32 bytes per step. The tables flag every illegal pair of adjacent bytes, and prev2 and prev3 minus 0x60 and 0x70 mark where a third or fourth byte has to be. The last partial block is padded with spaces in an aligned slot on the stack. Table 3-7 passes for both versions.
tsvetcommitted