sile / libflate

A Rust implementation of DEFLATE algorithm and related formats (ZLIB, GZIP)

Home Page:https://docs.rs/libflate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wrong gzip extra field

quininer opened this issue · comments

In your code that handles extra field, you write an id before xlen.

The rfc specifies extra field can have multiple subfields, but the extra field itself has no id.

https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ab6cbb9ec6dff73db8313aeb7308a358

Thank you for reporting this problem. I fixed it at the commit e2899b3.