is_utf8_char_slow(): Avoid accepting overlongs
authorKarl Williamson <public@khwilliamson.com>
Thu, 19 Apr 2012 04:14:15 +0000 (22:14 -0600)
committerKarl Williamson <public@khwilliamson.com>
Thu, 26 Apr 2012 17:58:57 +0000 (11:58 -0600)
commitcd7e6c884f038d4463b1c4768533b484e5c5c919
tree39ec6bd1365e0b22b518f91f3b5b6edc3d90867d
parent524080c4d32ea2975130ce2ce31f3b3d508bf140
is_utf8_char_slow(): Avoid accepting overlongs

There are possible overlong sequences that this function blindly
accepts.  Instead of developing the code to figure this out, turn this
function into a wrapper for utf8n_to_uvuni() which already has this
check.
utf8.c