diff options
author | Marcus Holland-Moritz <mhx-perl@gmx.net> | 2004-06-24 16:22:05 +0000 |
---|---|---|
committer | Marcus Holland-Moritz <mhx-perl@gmx.net> | 2004-06-24 16:22:05 +0000 |
commit | 8e742a20f09cb882e499103f4c5f4964764f2a86 (patch) | |
tree | 2650c18707759bbd336e8c775c8918276c4980a2 /pod/perldiag.pod | |
parent | 09122b95120d497042cb9df9ebb06ebcfca423aa (diff) | |
download | perl-8e742a20f09cb882e499103f4c5f4964764f2a86.tar.gz |
Fix for: [perl #2738] perl segfautls on input
The parser was incorrectly accepting <> as a subroutine prototype and
newATTRSUB didn't validate the proto argument before accessing op_sv.
p4raw-id: //depot/perl@22990
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r-- | pod/perldiag.pod | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 747dc054f9..854164500a 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1729,6 +1729,10 @@ characters in prototypes are $, @, %, *, ;, [, ], &, and \. (F) When using the C<sub> keyword to construct an anonymous subroutine, you must always specify a block of code. See L<perlsub>. +=item Illegal declaration of subroutine %s + +(F) A subroutine was not declared correctly. See L<perlsub>. + =item Illegal division by zero (F) You tried to divide a number by 0. Either something was wrong in |