-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
internal/zstd: avoid panic when the regenerated size is too small #63959
Conversation
This PR (HEAD: c76e909) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/540055. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Aimuz me: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Aimuz me: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
This PR (HEAD: e344adb) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/540055. Important tips:
|
This PR (HEAD: cba040b) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/540055. Important tips:
|
Message from Bryan Mills: Patch Set 5: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Bryan Mills: Patch Set 5: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
4ec749c
to
4c2992e
Compare
This PR (HEAD: 4c2992e) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/540055. Important tips:
|
Message from Aimuz me: Patch Set 6: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Klaus Post: Patch Set 7: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Aimuz me: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
This PR (HEAD: da41adc) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/540055. Important tips:
|
This PR (HEAD: a5b60e1) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/540055. Important tips:
|
Message from Aimuz me: Patch Set 8: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Bryan Mills: Patch Set 9: Code-Review+1 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Go LUCI: Patch Set 9: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2023-11-08T13:26:31Z","revision":"49d9dab72614339211047cbe5e3706c67d91a2a6"} Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Bryan Mills: Patch Set 9: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Go LUCI: Patch Set 9: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Go LUCI: Patch Set 9: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Klaus Post: Patch Set 9: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Matthew Dempsky: Patch Set 9: Code-Review+2 Commit-Queue+1 (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Go LUCI: Patch Set 9: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2023-11-08T20:26:58Z","revision":"49d9dab72614339211047cbe5e3706c67d91a2a6"} Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Matthew Dempsky: Patch Set 9: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Go LUCI: Patch Set 9: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
The decompressed size of each stream is equal to (Regenerated_Size+3)/4, except for the last stream, which may be up to 3 bytes smaller, to reach a total decompressed size as specified in Regenerated_Size. Fixes golang#63824
This PR (HEAD: 76a7075) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/540055. Important tips:
|
Message from Aimuz me: Patch Set 9: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Jes Cok: Patch Set 10: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Gopher Robot: Patch Set 10: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Message from Gopher Robot: Patch Set 10: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/540055. |
Description in accordance with RFC 8878 3.1.1.3.1.6. The decompressed size of each stream is equal to (Regenerated_Size+3)/4, except for the last stream, which may be up to 3 bytes smaller, to reach a total decompressed size as specified in Regenerated_Size. Fixes #63824 Change-Id: I5a8b482a995272aa2028a81a4db86c21b1770432 GitHub-Last-Rev: 76a7075 GitHub-Pull-Request: #63959 Reviewed-on: https://go-review.googlesource.com/c/go/+/540055 Auto-Submit: Bryan Mills <bcmills@google.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Klaus Post <klauspost@gmail.com> Run-TryBot: Jes Cok <xigua67damn@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This PR is being closed because golang.org/cl/540055 has been merged. |
Description in accordance with RFC 8878 3.1.1.3.1.6.
The decompressed size of each stream is equal to (Regenerated_Size+3)/4,
except for the last stream, which may be up to 3 bytes smaller,
to reach a total decompressed size as specified in Regenerated_Size.
Fixes #63824