New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SEGV using a regex with an invalid repeat range #16503
Comments
From Nick_Russell@McAfee.comThis is a bug report for perl from Nick Rrussell, The following command: # echo 'b' | perl -ne 'print if /ba{11,2}/;' when executed under perl v5.16.3 produces the error below: Can't do {n,m} with n > m in regex; marked by <-- HERE in m/ba{11,2} <-- HERE / at -e line 1. which is expected. However when run under perl v5.26.1 the regex is considered valid and crashes perl when the range is evaluated: Core was generated by `perl -ne print if /ba{11,2}/;'. Note that I was using a chroot that did not have perlbug installed so I used the version available under the host OS so the ' Locally applied patches' section is bogus. Flags: This perlbug was built using Perl 5.16.3 - Wed Aug 2 17:44:15 UTC 2017 Site configuration information for perl 5.26.1: Configured by Alpine at Tue Oct 31 13:26:34 GMT 2017. Summary of my perl5 (revision 5 version 26 subversion 1) configuration: Platform: Locally applied patches: @INC for perl 5.26.1: Environment for perl 5.26.1: The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any review, dissemination, distribution or copying is strictly prohibited. If you have received this email message in error, please notify the sender by reply email and delete the message and any attachments. ________________________________ McAfee Security UK Limited is registered in England and Wales with its registered address at C/O Skadden, Arps, Slate, Meagher & Flom (UK) LLP, 40 Bank Street, Canary Wharf, London, United Kingdom, E14 5DS, Company No. 10472868 |
From @khwilliamsonThank you for your report This is already fixed in blead, and hence for 5.28. It was fixed by this commit fix #132017 - OPFAIL insert needs to set flags to 0 I believe tThis would be a candidate for backporting into the 5.26 maintenance release series. The commit that broke it in 5.26 is commit 31fc939 fix RT #130561 - recursion and optimising away impossible quantifiers are not friends -- |
The RT System itself - Status changed from 'new' to 'open' |
From @khwilliamsonAnd it turns out that this fix is already in 5.26.2, which is scheduled for release in 3 days, unless something delays it. |
@khwilliamson - Status changed from 'open' to 'pending release' |
From @khwilliamsonI meant it would be fixed in 5.26.2, which was released on schedule, and is now available |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release yesterday of Perl 5.28.0, this and 185 other issues have been Perl 5.28.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#133100 (status was 'resolved')
Searchable as RT133100$
The text was updated successfully, but these errors were encountered: