This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
(perl #129342) test for buffer overflow
authorTony Cook <tony@develop-help.com>
Tue, 17 Jan 2017 00:52:53 +0000 (11:52 +1100)
committerHugo van der Sanden <hv@crypt.org>
Thu, 19 Jan 2017 16:13:18 +0000 (16:13 +0000)
t/lib/croak/toke

index d35eab6..f1817b3 100644 (file)
@@ -350,3 +350,10 @@ EXPECT
 syntax error at - line 4, near "ϡ time"
   (Might be a runaway multi-line ϡϡ string starting on line 3)
 Execution of - aborted due to compilation errors.
+########
+# NAME tr/// handling of mis-formatted \o characters
+# may only fail with ASAN
+tr/\o-0//;
+EXPECT
+Missing braces on \o{} at - line 2, within string
+Execution of - aborted due to compilation errors.