What version of Go are you using (go version)?
$ go version
go version go1.19.2 windows/amd64
There seems to be a bug with zip64 check on this line:
|
if d.directoryRecords == 0xffff || d.directorySize == 0xffff || d.directoryOffset == 0xffffffff { |
Specifically the d.directorySize == 0xffff part. Size of central directory is a 32-bit value so it should be compared to 0xffffffff.
What version of Go are you using (
go version)?There seems to be a bug with zip64 check on this line:
go/src/archive/zip/reader.go
Line 557 in 9ddb8ea
Specifically the
d.directorySize == 0xffffpart. Size of central directory is a 32-bit value so it should be compared to 0xffffffff.