Skip to content

Commit 8f73ad8

Browse files
committed
[io grant] Change \0 roundtrip test to \t roundtrip test
NUL bytes aren't allowed in paths, so this test is in direct contradiction with the security bug I'm trying to fix. Since it's trying to test roundtrippage of whitespace, change it to use use \t instead of \0. https://irclog.perlgeek.de/perl6-dev/2017-04-10#i_14405645
1 parent 39cff7b commit 8f73ad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

S32-io/io-path.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ isa-ok $path.IO, IO::Path, 'IO::Path.IO returns IO::Path';
5252
{
5353
my $perl = "/foo|\\bar".IO.perl;
5454
is $perl.EVAL.perl, $perl, "does $perl roundtrip?";
55-
my $nul = "/foo\0bar".IO.perl;
56-
is $nul.EVAL.perl, $nul, "does $nul roundtrip?";
55+
my $tab = "/foo\tbar".IO.perl;
56+
is $tab.EVAL.perl, $tab, "does $tab roundtrip?";
5757
}
5858

5959
# RT #127989

0 commit comments

Comments
 (0)