On Tue May 28 03:49:19 2013, tonyc wrote: > On Tue, May 28, 2013 at 08:05:32PM +1000, Tony Cook wrote: > > so our C<< scan + max < loceol >> condition is true, and the pointer > > addition overflows. > > > > The scan loop: > > > > while (scan < loceol && UCHARAT(scan) == c) { > > scan++; > > } > > > > then terminates early since loceol starts out less than scan. > > The attached patch fixes this particular instance of the bug, but from > inspection there are more (any C<< scan + max >> is suspect in > S_regrepeat.) I've applied this fix, and a few similar changes to S_regrepeat as the merge commit 285a3ca139d04d2ee1894c9a9110294ee8bb0309. I think this is a candidate for maint. Tony --- via perlbug: queue: perl5 status: open https://rt.perl.org:443/rt3/Ticket/Display.html?id=118175Thread Next