summaryrefslogtreecommitdiff
path: root/pod/perldiag.pod
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-04-04 21:17:24 -0600
committerKarl Williamson <khw@cpan.org>2020-04-05 06:14:44 -0600
commitdaa7401031a7a416e6bc05379a3e6f56744ff93d (patch)
tree80458fdfda410ee3d5d6f87266d288e2c661e423 /pod/perldiag.pod
parent99d2ace527b7c674a6e6c604deb0fa2522cac990 (diff)
downloadperl-daa7401031a7a416e6bc05379a3e6f56744ff93d.tar.gz
regcomp.c: Avoid a segfault
This was resulting in C undefined behavior reported by asan. Check that won't overflow before doing the operation; then die instead of going ahead anyway. This fixes #17593
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r--pod/perldiag.pod6
1 files changed, 6 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 28e2d55b90..6ae08a93d6 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -3098,6 +3098,12 @@ problem was discovered. See L<perlre>.
(F) The range specified in the tr/// or y/// operator had a minimum
character greater than the maximum character. See L<perlop>.
+=item Invalid reference to group in regex; marked by S<<-- HERE> in m/%s/
+
+(F) The capture group you specified can't possibly exist because the
+number you used is not within the legal range of possible values for
+this machine.
+
=item Invalid separator character %s in attribute list
(F) Something other than a colon or whitespace was seen between the