diff --git a/cmd/arc/main.go b/cmd/arc/main.go index 1050cd05..fd28ac5f 100644 --- a/cmd/arc/main.go +++ b/cmd/arc/main.go @@ -2,7 +2,6 @@ package main import ( "archive/tar" - "archive/zip" "bytes" "compress/flate" "flag" @@ -11,6 +10,7 @@ import ( "path/filepath" "strings" + "github.com/klauspost/compress/zip" "github.com/mholt/archiver/v3" "github.com/nwaples/rardecode" ) diff --git a/testdata/create-evil-zip.go b/testdata/create-evil-zip.go index 972fdb11..197b6475 100644 --- a/testdata/create-evil-zip.go +++ b/testdata/create-evil-zip.go @@ -1,10 +1,11 @@ package main import ( - "archive/zip" "log" "os" "time" + + "github.com/klauspost/compress/zip" ) func main() { diff --git a/zip.go b/zip.go index 81694bdc..8a552017 100644 --- a/zip.go +++ b/zip.go @@ -1,7 +1,6 @@ package archiver import ( - "archive/zip" "bytes" "compress/flate" "fmt" @@ -14,6 +13,7 @@ import ( "strings" "github.com/dsnet/compress/bzip2" + "github.com/klauspost/compress/zip" "github.com/klauspost/compress/zstd" "github.com/ulikunitz/xz" )