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
isal_inflate with crc_flag==ISAL_DEFLATE eats extra bytes when there are extra bytes at tail.
It always want to pick 64 bit at once, so if we provide extra bytes to it, it will eat it.
The demo code provides 8 extra bytes in isal_inflate, it eats 6.
The number of eaten bits is in strm->read_in_length. You can use that number to determine the amount of eaten bytes as well. In python-isal I do it with strm->read_in_length / 8 and that seems to work well (no off by one errors with quite extensive testing and production use).
isal_inflate with crc_flag==ISAL_DEFLATE eats extra bytes when there are extra bytes at tail.
It always want to pick 64 bit at once, so if we provide extra bytes to it, it will eat it.
The demo code provides 8 extra bytes in isal_inflate, it eats 6.
The text was updated successfully, but these errors were encountered: