]> granicus.if.org Git - php/commit
Improve error handling for UTF-16{,BE,LE}
authorAlex Dowad <alexinbeijing@gmail.com>
Wed, 14 Oct 2020 18:25:19 +0000 (20:25 +0200)
committerAlex Dowad <alexinbeijing@gmail.com>
Tue, 27 Oct 2020 08:19:01 +0000 (10:19 +0200)
commitd8895cd054a2bd4d778d8e54daf2ecc7ce93d803
treea3293d33e8e4d87c58685590bf9b4ec7db10214b
parentd9ddeb6e85d1dc3ddc3a0ea2e2014b2bc527e946
Improve error handling for UTF-16{,BE,LE}

Catch various errors such as the first part of a surrogate pair not being
followed by a proper second part, the first part of a surrogate pair appearing
at the end of a string, the second part of a surrogate pair appearing out
of place, and so on.
ext/mbstring/libmbfl/filters/mbfilter_utf16.c
ext/mbstring/libmbfl/mbfl/mbfilter.c