develooper Front page | perl.perl5.porters | Postings from February 2016

[perl #127599] S_reg: Assertion `(pRExC_state->parse) <(pRExC_state->end)' failed (regcomp.c:10187)

From:
Brian Carpenter
Date:
February 22, 2016 21:36
Subject:
[perl #127599] S_reg: Assertion `(pRExC_state->parse) <(pRExC_state->end)' failed (regcomp.c:10187)
Message ID:
rt-4.0.18-21845-1456176981-575.127599-75-0@perl.org
# New Ticket Created by  Brian Carpenter 
# Please include the string:  [perl #127599]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=127599 >


While fuzzing Perl v5.23.9 (v5.23.8-11-g71dfb35) with American Fuzzy Lop, I found a script that triggers an assertion failure:

~/perl/perl -e '0,qr{(}'
perl: regcomp.c:10187: S_reg: Assertion `(pRExC_state->parse) < (pRExC_state->end)' failed.

In contrast, Perl v5.20.2 throws the following:
Unmatched ( in regex; marked by <-- HERE in m/( <-- HERE / at -e line 1.




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