develooper Front page | perl.perl5.porters | Postings from June 2012

[perl #24382] qr((??{})) causes runaway perl process

From:
Father Chrysostomos via RT
Date:
June 14, 2012 09:20
Subject:
[perl #24382] qr((??{})) causes runaway perl process
Message ID:
rt-3.6.HEAD-5009-1339690838-1412.24382-14-0@perl.org
Apparently this was fixed some time before 5.10.0:

$ perl5.10.0 -e '$p = qr((??{$p}))x; /$p/'
EVAL without pos change exceeded limit in regex at -e line 1.
$ perl5.8.9 -e '$p = qr((??{$p}))x; /$p/'
Segmentation fault

Now the infinite recursion is trapped.




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