This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Dest buffer needs to be bigger for utf16_to_utf8()
authorKarl Williamson <khw@cpan.org>
Thu, 10 Aug 2017 21:52:35 +0000 (15:52 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 9 Nov 2017 03:21:44 +0000 (20:21 -0700)
commit624504c5a60da0880a7d1d6d3e66f65c68ba28ae
tree2e10bdcad3179576394c2f1e3fb2fd1327cac6f0
parent63ab03b3966fa7dcc24a137305becdb56bbf4e5a
Dest buffer needs to be bigger for utf16_to_utf8()

These undocumented functions require the destination buffer to have the
worst case size.  However that size (previously listed as 3/2 * input)
is wrong for EBCDIC.  Correct the comments, and the single use of these
in core.

These functions do not have a way to avoid overflowing, which strikes me
as wrong.
ext/XS-APItest/APItest.xs
toke.c
utf8.c