develooper Front page | perl.perl5.porters | Postings from February 2009

Re: 5.10.0 regressions that need fixing

Thread Previous | Thread Next
From:
Zefram
Date:
February 23, 2009 14:21
Subject:
Re: 5.10.0 regressions that need fixing
Message ID:
20090223222141.GF7057@fysh.org
Dave Mitchell wrote:
>Date: Sat, 25 Oct 2008 10:13:14 +0100
>Subject: Re: [perl #60034] (?>) causes wrongness on long string
>
>    regression in 5.10.0 onwards.
>    A fix has already been added to 5.8.9, but a different fix is needed
>    for 5.10.x, bleed
>
>Date: Mon, 10 Nov 2008 10:40:54 -0800
>Subject: [perl #60464] Invalid RE match in 5.10.0 (regression from 5.8.8)
>
>     '("a" x 40_000) =~ /^((?:a|b)+)/; print length($1)'
>     gives 40000 in 5.8.8, 32768 in bleed, 5.10.x

These two are the same bug, and in the forms stated above they only
affect 5.10.  The fix that went into 5.8.9 was for a slightly different
case, where the string is represented in UTF-8, which affects both 5.8.8
and 5.10.0.  I described three distinct forms of this bug at the head
of the recent thread "regexp iteration limits".  The third form is so
far unsolved, and probably out of scope for 5.10.1.

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About