File tree 1 file changed +1
-10
lines changed
1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -589,6 +589,7 @@ func FuzzComposeCommandLine(f *testing.F) {
589
589
f .Add (`C:\"Program Files"\Go\bin\go.exe` + "\x00 env" )
590
590
f .Add (`C:\"Pro"gram Files\Go\bin\go.exe` + "\x00 env" )
591
591
f .Add ("\x00 " + strings .Repeat ("a" , 8192 ))
592
+ f .Add ("\x00 " + strings .Repeat ("a" , 8193 ))
592
593
f .Add (strings .Repeat ("\x00 " + strings .Repeat ("a" , 8192 ), 4 ))
593
594
594
595
f .Fuzz (func (t * testing.T , s string ) {
@@ -629,16 +630,6 @@ func FuzzComposeCommandLine(f *testing.F) {
629
630
// have one or more runes converted to replacement characters.
630
631
t .Skipf ("skipping: input %d is not valid UTF-8" , i )
631
632
}
632
- if len (arg ) > 8192 {
633
- // CommandLineToArgvW seems to truncate each argument after 8192
634
- // UTF-16 code units, although this behavior is not documented. Since
635
- // it isn't documented, we shouldn't rely on it one way or the other,
636
- // so skip the input to tell the fuzzer to try a different approach.
637
- enc , _ := windows .UTF16FromString (arg )
638
- if len (enc ) > 8192 {
639
- t .Skipf ("skipping: input %d encodes to more than 8192 UTF-16 code units" , i )
640
- }
641
- }
642
633
}
643
634
if testing .Verbose () {
644
635
t .Logf ("using input: %#q" , args )
You can’t perform that action at this time.
0 commit comments