zig
zig copied to clipboard
gzip: add missing header fields and bounds for header parsing
- Add two length bounds of 1024 for the filename and comment fields. The official gzip C sources use a bound of 1024 for the filename, so that number is chosen.
- Add two missing header fields 'extra' and 'operating_system'
- Change a couple local vars into const.