Closed timothyzillion closed 8 years ago
When running with asserts enabled I hit one of them during encode:
https://github.com/atomicobject/heatshrink/blob/master/heatshrink_encoder.c#L297
matching assert in the decoder here:
https://github.com/atomicobject/heatshrink/blob/master/heatshrink_decoder.c#L272
**
Assertion failed: (match_pos < 1 << ((hse)->window_sz2)), function st_step_search
should the encoder-assertion be "(match_pos <= 1 << ((hse)->window_sz2))" instead ?
and the decoder-assertion be "ASSERT(neg_offset <= mask + 1)"
This was fixed by 060f120a8c114f5f7aa5c0758fca2283bcd552a3 and should have been closed. Thanks for reporting it.
When running with asserts enabled I hit one of them during encode:
https://github.com/atomicobject/heatshrink/blob/master/heatshrink_encoder.c#L297
matching assert in the decoder here:
https://github.com/atomicobject/heatshrink/blob/master/heatshrink_decoder.c#L272
**
Assertion failed: (match_pos < 1 << ((hse)->window_sz2)), function st_step_search
should the encoder-assertion be "(match_pos <= 1 << ((hse)->window_sz2))" instead ?
and the decoder-assertion be "ASSERT(neg_offset <= mask + 1)"