summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-11-01 22:12:51 -0600
committerKarl Williamson <khw@cpan.org>2016-11-02 15:49:29 -0600
commitb0b342d4b3fa61880a96b645a3dab648f7c4c682 (patch)
tree8d80cca3c0da9ef9a0a5b0989102697d4cb40022 /embed.fnc
parent22123136705b458f89846c8e559433731724adf7 (diff)
downloadperl-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.fnc1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed.fnc b/embed.fnc
index 5cc73b7978..d6312dcb1e 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -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 \