This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: [perl #133882] Assertion failure
authorKarl Williamson <khw@cpan.org>
Thu, 7 Mar 2019 20:44:34 +0000 (13:44 -0700)
committerKarl Williamson <khw@cpan.org>
Thu, 7 Mar 2019 20:50:24 +0000 (13:50 -0700)
commit534636494a1e2160ed87b0b7531ddb162be85b6e
treee77e6efcbbb6e6276dce4979100b14bcd8284a30
parent1c766bfb7607df442a390e97691c2be8a14cd109
PATCH: [perl #133882] Assertion failure

The asserts in this routine were doing there job.  It was called
inappropriately, with len set to 0, which means for it that it's
supposed to calculate the length by using strlen().  But, len being 0
here meant that the input was empty.  When run under valgrind, errors
would also show up.

This function was being called to see if the string had any characters
that varied depending on if it is UTF-8 or not.  Since we know that the
answer is no if the length is 0, we simply don't call this function
then.
t/re/subst.t
toke.c