]> Cypherpunks repositories - gostls13.git/commit
archive/zip: if non-zero base offset fails, fall back to zero
authorIan Lance Taylor <iant@golang.org>
Wed, 25 May 2022 21:12:29 +0000 (14:12 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 2 Jun 2022 16:25:34 +0000 (16:25 +0000)
commitf70b93a6e9ab6ef6ec4a9f1748f852e1601c0905
tree14c32a1250ad0260ccb21a8a8f02b5f149193a85
parent46ab7a5c4f80d912f25b6b3e1044282a2a79df8b
archive/zip: if non-zero base offset fails, fall back to zero

This permits us to read files that earlier Go releases could read.
It is also compatible with other zip programs.

Change-Id: I7e2999f1073c4db5ba3f51f92681e0b149d55b3e
Reviewed-on: https://go-review.googlesource.com/c/go/+/408734
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/archive/zip/reader.go
src/archive/zip/reader_test.go
src/archive/zip/testdata/test-baddirsz.zip [new file with mode: 0644]