Add note about UTF-8 decoder
This commit is contained in:
parent
226faa58f4
commit
2163afbf35
|
@ -607,6 +607,8 @@ hb_utf8_next (const uint8_t *text,
|
||||||
uint8_t c = *text;
|
uint8_t c = *text;
|
||||||
unsigned int mask, len;
|
unsigned int mask, len;
|
||||||
|
|
||||||
|
/* TODO check for overlong sequences? also: optimize? */
|
||||||
|
|
||||||
UTF8_COMPUTE (c, mask, len);
|
UTF8_COMPUTE (c, mask, len);
|
||||||
if (unlikely (!len || (unsigned int) (end - text) < len)) {
|
if (unlikely (!len || (unsigned int) (end - text) < len)) {
|
||||||
*unicode = -1;
|
*unicode = -1;
|
||||||
|
|
Loading…
Reference in New Issue