diff options
author | Karl Williamson <khw@cpan.org> | 2016-11-01 22:12:51 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2016-11-02 15:49:29 -0600 |
commit | b0b342d4b3fa61880a96b645a3dab648f7c4c682 (patch) | |
tree | 8d80cca3c0da9ef9a0a5b0989102697d4cb40022 /embed.fnc | |
parent | 22123136705b458f89846c8e559433731724adf7 (diff) | |
download | perl-b0b342d4b3fa61880a96b645a3dab648f7c4c682.tar.gz |
Fix wrong UTF-8 overflow error on 32-bit platforms
Commit 2b5e7bc2e60b4c4b5d87aa66e066363d9dce7930 changed the algorithm
for detecting overflow during decoding UTF-8 into code points. However,
on 32-bit platforms, this change caused it to claim some things overflow
that really don't. ALl such are overlong malformations, which are
normally forbidden, but not necessarily. This commit fixes that.
Diffstat (limited to 'embed.fnc')
-rw-r--r-- | embed.fnc | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1683,6 +1683,7 @@ ApdD |UV |to_utf8_case |NN const U8 *p \ #if defined(PERL_IN_UTF8_C) inRP |bool |does_utf8_overflow|NN const U8 * const s|NN const U8 * e inRP |bool |is_utf8_overlong_given_start_byte_ok|NN const U8 * const s|const STRLEN len +inRP |bool |isFF_OVERLONG |NN const U8 * const s|const STRLEN len sMR |char * |unexpected_non_continuation_text \ |NN const U8 * const s \ |STRLEN print_len \ |