The UTF-8 decoder should not accept byte sequences which decode to unicode
authorstsp <stsp@openbsd.org>
Thu, 5 Aug 2010 17:13:53 +0000 (17:13 +0000)
committerstsp <stsp@openbsd.org>
Thu, 5 Aug 2010 17:13:53 +0000 (17:13 +0000)
commit249006c8dad06afa197dd96b378039405e7d838b
tree41d9433136447f47bb9212ac55a58daafa3c9afd
parent51895dc9e32b1e72bd1d6b1963b559248f0d446a
The UTF-8 decoder should not accept byte sequences which decode to unicode
code positions U+D800 to U+DFFF (UTF-16 surrogates), U+FFFE, and U+FFFF.

http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
http://unicode.org/faq/utf_bom.html#utf8-4

ok phessler, millert, miod, deraadt
lib/libc/citrus/citrus_utf8.c