summaryrefslogtreecommitdiff
path: root/t/comp
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-02-19 12:26:54 +0000
committerAaron Crane <arc@cpan.org>2017-02-19 12:26:54 +0000
commite5c165a0b7551ffb94661aa7f18aabadba257782 (patch)
treef332010ae07b27cfee001b5f10193f3f2dfd0868 /t/comp
parent3b1d752dd57309cbf5f5018ddf5ec58ce2fcb7a4 (diff)
downloadperl-e5c165a0b7551ffb94661aa7f18aabadba257782.tar.gz
[perl #130815] fix ck_return null-pointer deref on malformed code
Diffstat (limited to 't/comp')
-rw-r--r--t/comp/parser.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/comp/parser.t b/t/comp/parser.t
index 8be973bfff..570df2e4d5 100644
--- a/t/comp/parser.t
+++ b/t/comp/parser.t
@@ -598,6 +598,12 @@ is $@, "", 'substr keys assignment';
like $@, qr/Missing right curly or square bracket/, 'RT #130311';
}
+# RT #130815: crash in ck_return for malformed code
+{
+ eval 'm(@{if(0){sub d{]]])}return';
+ like $@, qr/^syntax error at \(eval \d+\) line 1, near "\{\]"/,
+ 'RT #130815: null pointer deref';
+}
# Add new tests HERE (above this line)