You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
The issue is that some distance codes need more then 8 extra distance bits, and the existing read_bits function didn't handle that case (it only appears to allow for extracting 8 bits). I changed the line that parses out the value to:
val = d.tag & (0xffff >> (16 - num));
and it seems to be decoding my stream correctly.
I am using this to decode a live stream so I don't have sample data readily available to submit with this report, although I could try to generate some.
BTW, I appreciate the readability of this code vs. most other deflate implementations that I looked at.
The text was updated successfully, but these errors were encountered:
The issue is that some distance codes need more then 8 extra distance bits, and the existing read_bits function didn't handle that case (it only appears to allow for extracting 8 bits). I changed the line that parses out the value to:
and it seems to be decoding my stream correctly.
I am using this to decode a live stream so I don't have sample data readily available to submit with this report, although I could try to generate some.
BTW, I appreciate the readability of this code vs. most other deflate implementations that I looked at.
The text was updated successfully, but these errors were encountered: