Page MenuHomePhabricator

utf8 codepoint logic is incorrect
Closed, ResolvedPublic

Description

In src/bin/utf8.c, codepoint_to_utf8 incorrectly allows codepoints above U+10FFFF (5- and 6-byte "utf-8" encodings). UTF-8 is constrained to 4 bytes by Unicode (which is constrained to codepoints 10FFFF and below).