Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Karl Williamson
committed
Apr 26, 2012
1 parent
524080c
commit cd7e6c8
Showing
1 changed file
with
5 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters