Die on patterns that will match empty string forever
Subject: Re: Segementation fault in perl5.001 and 5.003
Strange sunspot activity caused =?iso-8859-1?Q?Markus_Thei=DFinger?= <Markus.Th
eissinger@gmd.de> to write:
| Hi,
|
| perl -e '$_=3D" 2"; print STDOUT /^(\s*(\))*)+$/;'
|
| produces a segmentation fault [snips]
Confirmed on 3_95. I'm surprised this kind of thing lasted this long.
Actually, I could have sworn someone fixed this awhile back. I suppose one
of the regulars could probably provide a better patch.
Works fine on 4.036, this patch returns it to 4.036 functionality.
p5p-msgid:
199703282138.PAA28311@psa.pencom.com