Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: f4cd5e29bc15621f2ab8fc5d7de0e68e62d43999
      
https://github.com/Perl/perl5/commit/f4cd5e29bc15621f2ab8fc5d7de0e68e62d43999
  Author: Hugo van der Sanden <h...@crypt.org>
  Date:   2020-09-22 (Tue, 22 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.

Reply via email to