zig icon indicating copy to clipboard operation
zig copied to clipboard

gzip: add missing header fields and bounds for header parsing

Open mllken opened this issue 3 years ago • 0 comments

  • 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.

mllken avatar Oct 12 '22 13:10 mllken