3 ms·
> One thing I'd like to check in the new code is whether it's as picky about things like overlong sequences as Bjoern's code is. I believe that's what checkCon
by loeg 9y ago
> One thing I'd like to check in the new code is whether it's as picky about things like overlong sequences as Bjoern's code is.
I believe that's what checkContinuation() is doing, based on its use of the "counts" parameters. I don't understand how it works, but I don't see any other reason for count_nibbles() to compute the '->count' member.
- kwillets 9y agoThe counts are actually to find the length of the following continuation bytes, and mark them to look for overlaps or underlaps between the end of one code point and the next.
- loeg 9y agoUnderlaps and overlaps would occur if sequences are invalid, i.e., overly long (or short) compared to the initial byte's prefix.