]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Perl: Avoid unbounded nesting_depth growth, part 3.
authorBruno Haible <bruno@clisp.org>
Mon, 18 Sep 2023 17:26:54 +0000 (19:26 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 18 Sep 2023 18:07:27 +0000 (20:07 +0200)
commit3166398e57152d2c8fd23785463b2da9b96e145d
tree030f0f141a18acd7b7cf17f34b204c5c7b7d82ec
parent578b1115fcfb6d069218d64c8ff900d3d109bfd9
xgettext: Perl: Avoid unbounded nesting_depth growth, part 3.

* gettext-tools/src/x-perl.c: Return from extract_balanced when a subroutine's
definition terminates and that subroutine was defined after a declaration that
ended with a semicolon.
(extract_perl): Pass semicolon_delim=true.

Test case:
==========================================
my %a = 4;

sub b
{
}
==========================================
gettext-tools/src/x-perl.c