compress/flate: “corrupt input before offset” decompressing stream produced by zlib #25846
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
What did you do?
I try to decompress stream from zlib library(deflate compression rfc1951) with Go package compress/flate. I've got error: "corrupt input before offset".
If decompress same stream with zlib library, then it's ok.
Example code: https://play.golang.org/p/sPp3uqGuHzI
What did you expect to see?
In example, byte array contains bytes from zlib deflate function output. An expected decompressed data is: "Hello Hello Hello Hello Hello Hello!"
What did you see instead?
flate: corrupt input before offset
The text was updated successfully, but these errors were encountered: