Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
compress/gzip: Reader unable to parse headers with long comments #14639
RFC 1952 for gzip does not specify a length for the comment and name fields.
The current implementation is inconsistent:
Playground example: https://play.golang.org/p/Zvjf8Q7jXe
This causes issues reading gzip files produced by GZinga, which produces syntactically valid gzip files, but abuses the comment field to store meta data.
Update: I have no intention of fixing this unless there is someone who needs this functionality. Whatever fix we do will need to be careful that we don't introduce a potential vector for DOS attacks since gzip is a common