Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vbaderks opened this issue Jan 2, 2023 · 1 comment
Assignees
Labels
Milestone

Comments

@vbaderks
Copy link
Contributor

vbaderks commented Jan 2, 2023

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

@vbaderks vbaderks added the bug label Jan 2, 2023
@vbaderks vbaderks self-assigned this Jan 2, 2023
@vbaderks vbaderks added this to the 2.4.1 milestone Jan 2, 2023
@vbaderks
Copy link
Contributor Author

vbaderks commented Jan 2, 2023

This issue has been resolved with PR #222.

@vbaderks vbaderks closed this as completed Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant