team-charls/charls

jpegls_errc::destination_buffer_too_small incorrectly thrown for 8 bit 2*2 image with stride = 4 during decoding

vbaderks opened this issue · 1 comments

A monochrome images of 2*2 fails to decode when a custom stride of 4 is used.
This problem is caused by the fact that the check doesn't take into account that the last line needs less bytes.

A buffer of 6 bytes should be enough to hold the output.

This is a new check introduced in v2.4.0

This issue has been resolved with PR #222.