-
Notifications
You must be signed in to change notification settings - Fork 17.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
archive/zip: fix zip64 extra headers problems #33118
archive/zip: fix zip64 extra headers problems #33118
Conversation
The central-directory extra fields can contain either 8, 16 or 24 data bytes for ONLY the fields > uint32max (0xFFFFFFFF). They should not be all set when either CompressedSize, UncompressedSize or offset > uint32max Fixes golang#33116
This PR (HEAD: c0c91c9) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/186178 to see it. Tip: You can toggle comments from me using the |
Should be h.UncompressedSize64 > uint32max Fixes golang#33116
This PR (HEAD: 5333827) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/186178 to see it. Tip: You can toggle comments from me using the |
Message from Gobot Gobot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/186178. |
a1b0af9
to
93a79bb
Compare
4a7ed1f
to
0f992b9
Compare
Message from Emmanuel Odeke: Patch Set 2: Run-TryBot+1 (1 comment) Thank you for this change Philip and apologies that we didn't Great catch and I have added suggestions but also for such (You'll have to manually edit the Github description for the I have created for you a test for this change, please expand on it // Test that we don't unnecessarily add extraneous fields like
} Please don’t reply on this GitHub thread. Visit golang.org/cl/186178. |
Message from Gobot Gobot: Patch Set 2: TryBots beginning. Status page: https://farmer.golang.org/try?commit=85ec2dbb Please don’t reply on this GitHub thread. Visit golang.org/cl/186178. |
Message from Gobot Gobot: Patch Set 2: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/186178. |
Message from Emmanuel Odeke: Patch Set 2: Here are some relevant parts of the ZIP specification Document: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
but note that that same section 4.3.9.2 says: which is the current behavior. With that bit from the specification, we Please don’t reply on this GitHub thread. Visit golang.org/cl/186178. |
Message from Go Bot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/186178. |
Message from Go Bot: Patch Set 2: TryBots beginning. Status page: https://farmer.golang.org/try?commit=85ec2dbb Please don’t reply on this GitHub thread. Visit golang.org/cl/186178. |
Message from Go Bot: Patch Set 2: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/186178. |
The central-directory extra fields can contain either 8, 16 or 24 data bytes for ONLY the fields > uint32max (0xFFFFFFFF).
They should not be all set when either CompressedSize, UncompressedSize or offset > uint32max
Fixes #33116