@@ -76,7 +76,7 @@ func FuzzExtractTar(f *testing.F) {
7676 }
7777 defer os .RemoveAll (tmpDir )
7878
79- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
79+ ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
8080 defer cancel ()
8181 _ = ExtractTar (ctx , tmpDir , tmpFile .Name ())
8282
@@ -134,7 +134,7 @@ func FuzzExtractZip(f *testing.F) {
134134 }
135135 defer os .RemoveAll (tmpDir )
136136
137- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
137+ ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
138138 defer cancel ()
139139 _ = ExtractZip (ctx , tmpDir , tmpFile .Name ())
140140
@@ -224,7 +224,7 @@ func FuzzExtractArchive(f *testing.F) {
224224 }
225225 tmpFile .Close ()
226226
227- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
227+ ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
228228 defer cancel ()
229229 cfg := malcontent.Config {}
230230 extractedDir , err := ExtractArchiveToTempDir (ctx , cfg , tmpFile .Name ())
@@ -327,7 +327,7 @@ func FuzzExtractGzip(f *testing.F) {
327327 }
328328 defer os .RemoveAll (tmpDir )
329329
330- ctx , cancel := context .WithTimeout (context .Background (), 3 * time .Second )
330+ ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
331331 defer cancel ()
332332
333333 _ = ExtractGzip (ctx , tmpDir , tmpFile .Name ())
@@ -374,7 +374,7 @@ func FuzzExtractBz2(f *testing.F) {
374374 }
375375 defer os .RemoveAll (tmpDir )
376376
377- ctx , cancel := context .WithTimeout (context .Background (), 3 * time .Second )
377+ ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
378378 defer cancel ()
379379
380380 _ = ExtractBz2 (ctx , tmpDir , tmpFile .Name ())
@@ -429,7 +429,7 @@ func FuzzExtractZstd(f *testing.F) {
429429 }
430430 defer os .RemoveAll (tmpDir )
431431
432- ctx , cancel := context .WithTimeout (context .Background (), 3 * time .Second )
432+ ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
433433 defer cancel ()
434434
435435 _ = ExtractZstd (ctx , tmpDir , tmpFile .Name ())
@@ -486,7 +486,7 @@ func FuzzExtractZlib(f *testing.F) {
486486 }
487487 defer os .RemoveAll (tmpDir )
488488
489- ctx , cancel := context .WithTimeout (context .Background (), 3 * time .Second )
489+ ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
490490 defer cancel ()
491491
492492 _ = ExtractZlib (ctx , tmpDir , tmpFile .Name ())
@@ -543,7 +543,7 @@ func FuzzExtractRPM(f *testing.F) {
543543 }
544544 defer os .RemoveAll (tmpDir )
545545
546- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
546+ ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
547547 defer cancel ()
548548
549549 _ = ExtractRPM (ctx , tmpDir , tmpFile .Name ())
@@ -597,7 +597,7 @@ func FuzzExtractDeb(f *testing.F) {
597597 }
598598 defer os .RemoveAll (tmpDir )
599599
600- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
600+ ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
601601 defer cancel ()
602602
603603 _ = ExtractDeb (ctx , tmpDir , tmpFile .Name ())
@@ -641,7 +641,7 @@ func FuzzExtractUPX(f *testing.F) {
641641 }
642642 defer os .RemoveAll (tmpDir )
643643
644- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
644+ ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
645645 defer cancel ()
646646
647647 _ = ExtractUPX (ctx , tmpDir , tmpFile .Name ())
0 commit comments