diff options
author | Hugo van der Sanden <hv@crypt.org> | 2022-04-19 19:06:10 +0100 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-05-28 13:02:24 -0600 |
commit | f24623d674e0b493bbafe0d87eb3e5d047815a63 (patch) | |
tree | 84ac14a4030a30ec7e4b07747bbda14ac839cd5b /pod/perldiag.pod | |
parent | dae8ab819b9ffd6d540355efffacf225aff00a0f (diff) | |
download | perl-f24623d674e0b493bbafe0d87eb3e5d047815a63.tar.gz |
GH16319: avoid recursion parsing 'pack' template
A template with many open brackets or open parentheses could
overflow the stack, modify the parsing loop to avoid that.
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r-- | pod/perldiag.pod | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index cd4c6040a7..cddcc23321 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -3704,6 +3704,11 @@ See L</500 Server error>. by a missing delimiter on a string or pattern, because it eventually ended earlier on the current line. +=item Mismatched brackets in template + +(F) A pack template could not be parsed because pairs of C<[...]> or +C<(...)> could not be matched up. See L<perlfunc/pack>. + =item Misplaced _ in number (W syntax) An underscore (underbar) in a numeric constant did not |