-
Notifications
You must be signed in to change notification settings - Fork 303
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
A discrepancy between github.com/klauspost/compress/gzip and compress/gzip with a partial read followed by io.Copy? #803
Comments
Let me check it out. |
So removing the |
It seems to be caused by the io.ReaderTo implementation that is used by |
It is designed to be called from the start, ie not after some data has been read. But it should be fixed I will send a PR. |
Fix checksum calculation in `WriteTo` after something has been read from the stream. Fixes #803
Fix checksum calculation in `WriteTo` after something has been read from the stream. Fixes #803
Fix is merged. |
What did I ever do to deserve the silver service? Thanks so much for the quick fix—and for all of the work you do in Go. |
Firstly: I'm sorry for the floundering and imperfect code below. Things are very cloudy to me.
The readme says that:
I noticed a discrepancy between github.com/klauspost/compress/gzip and compress/gzip that I don't really understand. With this test file
and with v1.16.4, I find that the test for compress/zip passes, but the test for github.com/klauspost/compress/gzip does not. The error is:
There are three interesting things.
That is, there's something specific about the combination of br.ReadBytes, io.Copy, and github.com/klauspost/compress/gzip which triggers this error.
Does anyone have any ideas?
The text was updated successfully, but these errors were encountered: