utf16_to_utf8_reversed() should croak early when passed an odd byte length.
authorNicholas Clark <nick@ccl4.org>
Sun, 18 Oct 2009 20:30:41 +0000 (21:30 +0100)
committerNicholas Clark <nick@ccl4.org>
Sun, 18 Oct 2009 21:10:36 +0000 (22:10 +0100)
commite0ea5e2d50a479e160d39f481e02abd7c0c9cf91
treefb57ba0ad27123ca5845fb62789f53338a1dbeb7
parent30685b5659009a95642202219acc6ded18f74dbc
utf16_to_utf8_reversed() should croak early when passed an odd byte length.

Rather than transposing n + 1 bytes, including 1 it was not passed, before
calling utf16_to_utf8() and having that croak.
e 69422~
ext/XS-APItest/t/utf16_to_utf8.t
pod/perldiag.pod
utf8.c