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
compress/gzip: hangs on gunzip #6550
Labels
Milestone
Comments
Labels changed: added go1.2, removed go1.2maybe. Owner changed to @rsc. Status changed to Started. |
in huffSym, http://tip.golang.org/src/pkg/compress/flate/inflate.go#L645 644 if n > huffmanChunkBits { 645 chunk = h.links[chunk>>huffmanValueShift][(f.b>>huffmanChunkBits)&h.linkMask] 646 n = uint(chunk & huffmanCountMask) 647 } 644: n == 10, huffmanChunkBits == 9 645: chunk is assigned to 0 646: n is assigned to 0 it means that huffSym produces a symbol w/o advancing the input. My current understanding is that huffman tree is invalid and the fix would be to check the huffman tree at the construction stage. |
This issue was closed by revision 8ba6deb. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Attachments:
The text was updated successfully, but these errors were encountered: