Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
"(P) substitution loop" with long string #11742
Created by @daxim
Munging a 1 GiB XML file before parsing.
Following program triggers the grade (P) diagnostic
print substr $xml, 0, 250; # did it work?
On Wed, Nov 09, 2011 at 10:02:46AM -0800, Lars DÉªá´�á´�á´�á´�á´¡ è¿ªæ��æ�¯ wrote:
perl -Ilib -E '$x = "a" . ("b" x 2**30); $x =~ s/([^b]+b)/$1xyz/;'
Changing maxiters in pp_subst and sbu_maxiters in struct subst to
perl -e '$x = "a" . ("b" x 2**31); $x =~ s/b/a/g'
changes from "Substitution loop at -e line 1" to what may be an