archive/zip: checksum error in readDataDescriptor when reading valid zip file #66157
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.22.0 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I have a zip file, which I can extract / read using standard zip reader of OS (Ubuntu / Windows etc.). However, on reading the same zip file using
archive/zip
package, I am gettingzip: checksum error
The zip file is: checksum-error.zip
I could get the file extracted out to a new destination, but then the
zip.Read()
method fails withErrChecksum
A sample code to reproduce this behaviour (in the code below, basePath can be changed to your local filesystem directory, where zip is placed):
What did you see happen?
Output of the mentioned sample code is:
What did you expect to see?
No errors.
The zip file can be read successfully using other softwares.
The text was updated successfully, but these errors were encountered: