develooper Front page | perl.perl5.porters | Postings from March 2019

[perl #131551] segfault in S_regnode_guts

From:
Karl Williamson via RT
Date:
March 18, 2019 04:19
Subject:
[perl #131551] segfault in S_regnode_guts
Message ID:
rt-4.0.24-2654-1552882756-342.131551-15-0@perl.org
This has been fixed by 
commit 6ef7fe531911e0b41ffcc04c1d6b6ec25a8b1bc9
 Author: Karl Williamson <khw@cpan.org>
 Date:   Sun Mar 17 22:11:04 2019 -0600
 
     PATCH: [perl #131551] Too deep regex compilation recursion
     
     This patch, started by Yves Orton, and refined in consultation with Tony
     Cook, imposes a maximum depth of unclosed left parentheses, at which
     point it croaks.  This is to prevent the segfault in the ticket.
     
     The patch adds a variable that can be set to increase or decrease this
     limit at run time (actually regex compilation time) should this be
     desired, and hence our pre-determined limit of 1000 can be changed if
     necessary.
 -- 
Karl Williamson

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=131551



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