-
Notifications
You must be signed in to change notification settings - Fork 18k
hash/crc32: wrong output for unaligned input on s390x #16779
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
Labels
Milestone
Comments
s390x assembly problem, uncaught until now? All the other builders look happy. /cc @mundaym @billotosyr for s390x |
Yes, I'm assuming this is a s390x assembly bug unless proven otherwise. |
We'll have a look at it. |
CL https://golang.org/cl/27409 mentions this issue. |
Can this fix be marked for 1.7.1? The CL is simple and should apply cleanly to 1.7. |
Sure. |
gopherbot
pushed a commit
that referenced
this issue
Sep 7, 2016
The code wasn't checking to see if the data was still >= 64 bytes long after aligning it. Aligning the data is an optimization and we don't actually need to do it. In fact for smaller sizes it slows things down due to the overhead of calling the generic function. Therefore for now I have simply removed the alignment stage. I have also added a check into the assembly to deliberately trigger a segmentation fault if the data is too short. Fixes #16779. Change-Id: Ic01636d775efc5ec97689f050991cee04ce8fe73 Reviewed-on: https://go-review.googlesource.com/27409 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-on: https://go-review.googlesource.com/28635
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
CL https://go-review.googlesource.com/#/c/24470/ introduced a test for unaligned crc32 computations. It seems this broke the s390x implementation.
See https://build.golang.org/log/e03a4804f6a0c93d08194fb85a168701774f729d , the build bot for s390x is failing.
@ChrisXZou
The text was updated successfully, but these errors were encountered: