An off-by-one error meant that index($str,...)
was effectively being executed as index("$str\0", ...).
Probably introduced by change #26511.
p4raw-link: @26511 on //depot/perl:
4c8626beeba549aaf3f327729c56a599716ee8b7
p4raw-id: //depot/perl@33952
my $res = $$test [$l];
{
- local $::TODO = ($l == 3 && $i == 7 ? "Bug #53746" : "");
is (index ($str, $q), $res, "Find NUL character(s)");
}
if (little >= lend)
return (char*)big;
{
- const char first = *little++;
+ const char first = *little;
const char *s, *x;
- bigend -= lend - little;
+ bigend -= lend - little++;
OUTER:
while (big <= bigend) {
if (*big++ == first) {