Skip to content

Commit 6fb219f

Browse files
committed
perldelta for 39b4841, regex recurse bugfix
GH #22869
1 parent 72c8106 commit 6fb219f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pod/perldelta.pod

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,15 @@ everything after the first number.
386386

387387
=item *
388388

389-
XXX
389+
A run-time pattern which contained a code block which recursed back to the
390+
same bit of code which ran that match, could cause a crash. [GH #22869].
391+
392+
For example:
393+
394+
my $r = qr/... (?{ foo() if ... }) .../;
395+
sub foo { $string =~ $r }
396+
foo()
397+
390398

391399
=back
392400

0 commit comments

Comments
 (0)