Branch: refs/heads/gh18096 Home: https://github.com/Perl/perl5 Commit: 515de2e11af56ed947a53532faf11cb836fb8fd5 https://github.com/Perl/perl5/commit/515de2e11af56ed947a53532faf11cb836fb8fd5 Author: Hugo van der Sanden <h...@crypt.org> Date: 2020-09-15 (Tue, 15 Sep 2020)
Changed paths: M regcomp.c M t/re/re_tests Log Message: ----------- [gh18096] assume worst-case for GOSUBs we don't analyse During study_chunk, under various conditions we avoid recursing into a GOSUB. But we must avoid giving the enclosing scope the idea that this GOSUB would match only an empty string, since that could trigger wrong optimizations (eg CURLYX => CURLYM in the ticket). So we mark the construct as infinite, as in the code branch where we _do_ recurse into it.