We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3221590 commit 999ca10Copy full SHA for 999ca10
zip/writer.go
@@ -125,7 +125,7 @@ func (w *Writer) Close() error {
125
b.uint16(uint16(len(h.Comment)))
126
b = b[4:] // skip disk number start and internal file attr (2x uint16)
127
b.uint32(h.ExternalAttrs)
128
- if h.offset > uint32max {
+ if h.isZip64() || h.offset > uint32max {
129
b.uint32(uint32max)
130
} else {
131
b.uint32(uint32(h.offset))
0 commit comments