pfg 9fe5eca952 MFC r265095, r265167;
citrus: Avoid invalid code points.

The UTF-8 decoder should not accept byte sequences which decode to
unicode code positions U+D800 to U+DFFF (UTF-16 surrogates).[1]

Contrary to the original OpenBSD patch, we do pass U+FFFE and U+FFFF,
both values are valid "non-characters" [2] and must be mapped through
UTFs.

[1] http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
[2] http://www.unicode.org/faq/private_use.html

Reported by:	Stefan Sperling [1]
Thanks to:	jilles [2]
Obtained from:	OpenBSD
2014-05-05 14:50:53 +00:00
..
2013-11-06 23:59:19 +00:00
2014-04-15 09:49:44 +00:00
2014-05-05 14:50:53 +00:00
2014-04-23 12:11:14 +00:00
2013-07-28 18:44:17 +00:00
2013-07-28 18:44:17 +00:00
2014-03-26 07:31:57 +00:00
2014-03-10 00:53:37 +00:00
2013-12-13 05:54:30 +00:00
2014-03-10 00:53:37 +00:00
2014-02-04 03:36:42 +00:00
2013-11-29 19:44:30 +00:00