Dear Maintainer,
I am attaching the test results and file comparisons with the official source code below.
$ go test archive/zip
--- FAIL: TestReader (0.05s)
--- FAIL: TestReader/test.zip (0.00s)
reader_test.go:685: name="gophercolor16x16.png", want "test.txt"
reader_test.go:688: gophercolor16x16.png: Modified=2026-09-07 09:04:40 +0000 +0000, want 2010-09-05 12:12:01 +1000 +1000
reader_test.go:768: gophercolor16x16.png: len=785, want 26
reader_test.go:685: name="test.txt", want "gophercolor16x16.png"
reader_test.go:688: test.txt: Modified=2026-09-07 09:04:40 +0000 +0000, want 2010-09-05 15:52:58 +1000 +1000
reader_test.go:768: test.txt: len=26, want 785
--- FAIL: TestReader/test-trailing-junk.zip (0.00s)
reader_test.go:685: name="gophercolor16x16.png", want "test.txt"
reader_test.go:688: gophercolor16x16.png: Modified=2026-09-07 09:04:40 +0000 +0000, want 2010-09-05 12:12:01 +1000 +1000
reader_test.go:768: gophercolor16x16.png: len=785, want 26
reader_test.go:685: name="test.txt", want "gophercolor16x16.png"
reader_test.go:688: test.txt: Modified=2026-09-07 09:04:40 +0000 +0000, want 2010-09-05 15:52:58 +1000 +1000
reader_test.go:768: test.txt: len=26, want 785
--- FAIL: TestReader/test-badbase.zip (0.00s)
reader_test.go:649: file count=1, want 2
--- FAIL: TestReader/symlink.zip (0.00s)
reader_test.go:688: symlink: Modified=2026-09-07 09:04:40 +0000 +0000, want 2012-02-03 19:56:48 -0200 -0200
reader_test.go:785: symlink mode: want Lrwxrwxrwx, got -rwxr-xr-x
--- FAIL: TestReader/dd.zip (0.00s)
reader_test.go:688: filename: Modified=2026-09-07 09:04:40 +0000 UTC, want 2011-02-02 13:06:20 +0000 UTC
--- FAIL: TestReader/winxp.zip (0.00s)
reader_test.go:685: name="dir/bar", want "hello"
reader_test.go:688: dir/bar: Modified=2026-09-07 09:04:40 +0000 UTC, want 2011-12-08 10:04:24 +0000 UTC
reader_test.go:768: dir/bar: len=6, want 8
reader_test.go:685: name="dir/empty/", want "dir/bar"
reader_test.go:688: dir/empty/: Modified=2026-09-07 09:04:40 +0000 UTC, want 2011-12-08 10:04:50 +0000 UTC
reader_test.go:785: dir/empty/ mode: want -rw-rw-rw-, got drwxrwxrwx
reader_test.go:768: dir/empty/: len=0, want 6
reader_test.go:685: name="hello", want "dir/empty/"
reader_test.go:688: hello: Modified=2026-09-07 09:04:40 +0000 UTC, want 2011-12-08 10:08:06 +0000 UTC
reader_test.go:785: hello mode: want drwxrwxrwx, got -rw-rw-rw-
reader_test.go:768: hello: len=8, want 0
reader_test.go:688: readonly: Modified=2026-09-07 09:04:40 +0000 UTC, want 2011-12-08 10:06:08 +0000 UTC
--- FAIL: TestReader/unix.zip (0.00s)
reader_test.go:685: name="dir/bar", want "hello"
reader_test.go:688: dir/bar: Modified=2026-09-07 09:04:40 +0000 +0000, want 2011-12-08 10:04:24 +0000 +0000
reader_test.go:785: dir/bar mode: want -rw-rw-rw-, got -rw-r--r--
reader_test.go:768: dir/bar: len=6, want 8
reader_test.go:685: name="dir/empty/", want "dir/bar"
reader_test.go:688: dir/empty/: Modified=2026-09-07 09:04:40 +0000 +0000, want 2011-12-08 10:04:50 +0000 +0000
reader_test.go:785: dir/empty/ mode: want -rw-rw-rw-, got drwxr-xr-x
reader_test.go:768: dir/empty/: len=0, want 6
reader_test.go:685: name="hello", want "dir/empty/"
reader_test.go:688: hello: Modified=2026-09-07 09:04:40 +0000 +0000, want 2011-12-08 10:08:06 +0000 +0000
reader_test.go:785: hello mode: want drwxrwxrwx, got -rw-r--r--
reader_test.go:768: hello: len=8, want 0
reader_test.go:688: readonly: Modified=2026-09-07 09:04:40 +0000 +0000, want 2011-12-08 10:06:08 +0000 +0000
reader_test.go:785: readonly mode: want -r--r--r--, got -rw-r--r--
--- FAIL: TestReader/go-with-datadesc-sig.zip (0.00s)
reader_test.go:685: name="bar.txt", want "foo.txt"
reader_test.go:688: bar.txt: Modified=2026-09-07 09:04:40 +0000 UTC, want 1979-11-30 00:00:00 +0000 UTC
reader_test.go:774: bar.txt: content[0]='b' want 'f'
reader_test.go:685: name="foo.txt", want "bar.txt"
reader_test.go:688: foo.txt: Modified=2026-09-07 09:04:40 +0000 UTC, want 1979-11-30 00:00:00 +0000 UTC
reader_test.go:774: foo.txt: content[0]='f' want 'b'
--- FAIL: TestReader/Bad-CRC32-in-data-descriptor (0.00s)
reader_test.go:685: name="bar.txt", want "foo.txt"
reader_test.go:688: bar.txt: Modified=2026-09-07 09:04:40 +0000 UTC, want 1979-11-30 00:00:00 +0000 UTC
reader_test.go:685: name="foo.txt", want "bar.txt"
reader_test.go:688: foo.txt: Modified=2026-09-07 09:04:40 +0000 UTC, want 1979-11-30 00:00:00 +0000 UTC
reader_test.go:774: foo.txt: content[0]='f' want 'b'
--- FAIL: TestReader/crc32-not-streamed.zip (0.00s)
reader_test.go:685: name="bar.txt", want "foo.txt"
reader_test.go:688: bar.txt: Modified=2026-09-07 09:04:40 +0000 +0000, want 2012-03-08 16:59:10 -0800 -0800
reader_test.go:774: bar.txt: content[0]='b' want 'f'
reader_test.go:685: name="foo.txt", want "bar.txt"
reader_test.go:688: foo.txt: Modified=2026-09-07 09:04:40 +0000 +0000, want 2012-03-08 16:59:12 -0800 -0800
reader_test.go:774: foo.txt: content[0]='f' want 'b'
--- FAIL: TestReader/crc32-not-streamed.zip#01 (0.00s)
reader_test.go:685: name="bar.txt", want "foo.txt"
reader_test.go:688: bar.txt: Modified=2026-09-07 09:04:40 +0000 +0000, want 2012-03-08 16:59:10 -0800 -0800
reader_test.go:685: name="foo.txt", want "bar.txt"
reader_test.go:688: foo.txt: Modified=2026-09-07 09:04:40 +0000 +0000, want 2012-03-08 16:59:12 -0800 -0800
reader_test.go:774: foo.txt: content[0]='f' want 'b'
--- FAIL: TestReader/zip64.zip (0.00s)
reader_test.go:688: README: Modified=2026-09-07 09:04:40 +0000 UTC, want 2012-08-10 14:33:32 +0000 UTC
--- FAIL: TestReader/zip64-2.zip (0.00s)
reader_test.go:688: README: Modified=2026-09-07 09:04:40 +0000 +0000, want 2012-08-10 14:33:32 -0400 -0400
--- FAIL: TestReader/utf8-7zip.zip (0.00s)
reader_test.go:688: 世界: Modified=2026-09-07 09:04:40 +0000 +0000, want 2017-11-06 13:09:27.8678625 -0800 -0800
--- FAIL: TestReader/utf8-infozip.zip (0.00s)
reader_test.go:688: 世界: Modified=2026-09-07 09:04:40 +0000 +0000, want 2017-11-06 13:09:27 -0800 -0800
--- FAIL: TestReader/utf8-osx.zip (0.00s)
reader_test.go:688: 世界: Modified=2017-11-06 21:09:27 +0000 +0000, want 2017-11-06 13:09:27 -0800 -0800
--- FAIL: TestReader/utf8-winrar.zip (0.00s)
reader_test.go:688: 世界: Modified=2026-09-07 09:04:40 +0000 +0000, want 2017-11-06 13:09:27.8678625 -0800 -0800
--- FAIL: TestReader/utf8-winzip.zip (0.00s)
reader_test.go:688: 世界: Modified=2026-09-07 09:04:40 +0000 +0000, want 2017-11-06 13:09:27.867 -0800 -0800
--- FAIL: TestReader/time-7zip.zip (0.00s)
reader_test.go:688: test.txt: Modified=2026-09-07 09:04:40 +0000 +0000, want 2017-10-31 21:11:57.2448179 -0700 -0700
--- FAIL: TestReader/time-infozip.zip (0.00s)
reader_test.go:688: test.txt: Modified=2026-09-07 09:04:40 +0000 +0000, want 2017-10-31 21:11:57 -0700 -0700
--- FAIL: TestReader/time-osx.zip (0.00s)
reader_test.go:688: test.txt: Modified=2017-11-01 04:11:57 +0000 +0000, want 2017-10-31 21:11:57 -0700 -0700
--- FAIL: TestReader/time-win7.zip (0.00s)
reader_test.go:688: test.txt: Modified=2026-09-07 09:04:40 +0000 UTC, want 2017-10-31 21:11:58 +0000 UTC
--- FAIL: TestReader/time-winrar.zip (0.00s)
reader_test.go:688: test.txt: Modified=2026-09-07 09:04:40 +0000 +0000, want 2017-10-31 21:11:57.2448179 -0700 -0700
--- FAIL: TestReader/time-winzip.zip (0.00s)
reader_test.go:688: test.txt: Modified=2026-09-07 09:04:40 +0000 +0000, want 2017-10-31 21:11:57.244 -0700 -0700
--- FAIL: TestReader/time-go.zip (0.00s)
reader_test.go:688: test.txt: Modified=2026-09-07 09:04:40 +0000 +0000, want 2017-10-31 21:11:57 -0700 -0700
--- FAIL: TestReader/time-22738.zip (0.00s)
reader_test.go:688: file: Modified=2026-09-07 09:04:40 +0000 +0000, want 1999-12-31 19:00:00 -0500 -0500
reader_test.go:691: file: ModTime=2026-09-07 09:04:40 +0000 UTC, want 1999-12-31 19:00:00 +0000 UTC
--- FAIL: TestReader/dupdir.zip (0.00s)
reader_test.go:688: a/: Modified=2026-09-07 09:04:40 +0000 +0000, want 2021-12-29 00:00:00 +0000 +0000
reader_test.go:688: a/b: Modified=2026-09-07 09:04:40 +0000 +0000, want 2021-12-29 00:00:00 +0000 +0000
reader_test.go:688: a/b/: Modified=2026-09-07 09:04:40 +0000 +0000, want 2021-12-29 00:00:00 +0000 +0000
reader_test.go:688: a/b/c: Modified=2026-09-07 09:04:40 +0000 +0000, want 2021-12-29 00:00:00 +0000 +0000
504b03041400080000007ca95f4b00000000000000000000000008000900746573742e74787455540500018d49f959504b0708000000000000000000000000504b010214001400080000007ca95f4b000000000000000000000000080009000000000000000000000000000000746573742e74787455540500018d49f959504b050600000000010001003f0000003f0000000000
504b03041400000000009448275d00000000000000000000000008000900746573742e7478745554050001287e9e6a504b010214001400000000009448275d000000000000000000000000080009000000000000000000000000000000746573742e7478745554050001287e9e6a504b050600000000010001003f0000002f0000000000
--- FAIL: TestWriterTime (0.00s)
writer_test.go:261: contents of time-go.zip differ
--- FAIL: TestFSModTime (0.00s)
reader_test.go:1354: a: got modtime 2026-09-07 09:04:40 +0000 UTC, want 2021-04-19 19:29:56 +0000 UTC
reader_test.go:1354: a/b/c: got modtime 2026-09-07 09:04:40 +0000 UTC, want 2021-04-19 19:29:59 +0000 UTC
signal: killed
FAIL archive/zip 43.886s
FAIL
$ diff -r ./go/src/archive/zip/testdata /usr/lib/go-1.27/src/archive/zip/testdata
Binary files ./go/src/archive/zip/testdata/crc32-not-streamed.zip and /usr/lib/go-1.27/src/archive/zip/testdata/crc32-not-streamed.zip differ
Binary files ./go/src/archive/zip/testdata/dd.zip and /usr/lib/go-1.27/src/archive/zip/testdata/dd.zip differ
Binary files ./go/src/archive/zip/testdata/dupdir.zip and /usr/lib/go-1.27/src/archive/zip/testdata/dupdir.zip differ
Binary files ./go/src/archive/zip/testdata/go-with-datadesc-sig.zip and /usr/lib/go-1.27/src/archive/zip/testdata/go-with-datadesc-sig.zip differ
Binary files ./go/src/archive/zip/testdata/readme.zip and /usr/lib/go-1.27/src/archive/zip/testdata/readme.zip differ
Binary files ./go/src/archive/zip/testdata/subdir.zip and /usr/lib/go-1.27/src/archive/zip/testdata/subdir.zip differ
Binary files ./go/src/archive/zip/testdata/symlink.zip and /usr/lib/go-1.27/src/archive/zip/testdata/symlink.zip differ
Binary files ./go/src/archive/zip/testdata/test-badbase.zip and /usr/lib/go-1.27/src/archive/zip/testdata/test-badbase.zip differ
Binary files ./go/src/archive/zip/testdata/test-trailing-junk.zip and /usr/lib/go-1.27/src/archive/zip/testdata/test-trailing-junk.zip differ
Binary files ./go/src/archive/zip/testdata/test.zip and /usr/lib/go-1.27/src/archive/zip/testdata/test.zip differ
Binary files ./go/src/archive/zip/testdata/time-22738.zip and /usr/lib/go-1.27/src/archive/zip/testdata/time-22738.zip differ
Binary files ./go/src/archive/zip/testdata/time-7zip.zip and /usr/lib/go-1.27/src/archive/zip/testdata/time-7zip.zip differ
Binary files ./go/src/archive/zip/testdata/time-go.zip and /usr/lib/go-1.27/src/archive/zip/testdata/time-go.zip differ
Binary files ./go/src/archive/zip/testdata/time-infozip.zip and /usr/lib/go-1.27/src/archive/zip/testdata/time-infozip.zip differ
Binary files ./go/src/archive/zip/testdata/time-osx.zip and /usr/lib/go-1.27/src/archive/zip/testdata/time-osx.zip differ
Binary files ./go/src/archive/zip/testdata/time-win7.zip and /usr/lib/go-1.27/src/archive/zip/testdata/time-win7.zip differ
Binary files ./go/src/archive/zip/testdata/time-winrar.zip and /usr/lib/go-1.27/src/archive/zip/testdata/time-winrar.zip differ
Binary files ./go/src/archive/zip/testdata/time-winzip.zip and /usr/lib/go-1.27/src/archive/zip/testdata/time-winzip.zip differ
Binary files ./go/src/archive/zip/testdata/unix.zip and /usr/lib/go-1.27/src/archive/zip/testdata/unix.zip differ
Binary files ./go/src/archive/zip/testdata/utf8-7zip.zip and /usr/lib/go-1.27/src/archive/zip/testdata/utf8-7zip.zip differ
Binary files ./go/src/archive/zip/testdata/utf8-infozip.zip and /usr/lib/go-1.27/src/archive/zip/testdata/utf8-infozip.zip differ
Binary files ./go/src/archive/zip/testdata/utf8-osx.zip and /usr/lib/go-1.27/src/archive/zip/testdata/utf8-osx.zip differ
Binary files ./go/src/archive/zip/testdata/utf8-winrar.zip and /usr/lib/go-1.27/src/archive/zip/testdata/utf8-winrar.zip differ
Binary files ./go/src/archive/zip/testdata/utf8-winzip.zip and /usr/lib/go-1.27/src/archive/zip/testdata/utf8-winzip.zip differ
Binary files ./go/src/archive/zip/testdata/winxp.zip and /usr/lib/go-1.27/src/archive/zip/testdata/winxp.zip differ
Binary files ./go/src/archive/zip/testdata/zip64-2.zip and /usr/lib/go-1.27/src/archive/zip/testdata/zip64-2.zip differ
Binary files ./go/src/archive/zip/testdata/zip64.zip and /usr/lib/go-1.27/src/archive/zip/testdata/zip64.zip differ