-
-
Notifications
You must be signed in to change notification settings - Fork 701
Crash in vips_foreign_load_jp2k_pack #4154
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
Labels
Comments
Here's a better stack trace:
|
Hi @mika-fischer, I see this here too, I'll take a look. Thanks for the report! |
jcupitt
added a commit
that referenced
this issue
Sep 18, 2024
We were not taking account of x0/y0 correctly. See #4154 Thanks @mika-fischer
I made a PR which fixes this case at least. We should get those other test files working too. Let's close this issue and continue any discussion in the PR. |
jcupitt
added a commit
that referenced
this issue
Sep 20, 2024
* fix x0/y0 handling * fix tiled mode too * add two tricky jp2k test images * reject jp2k images without a valid container We were not taking account of x0/y0 correctly. Some valid jp2k images appear to be mono (for example) when you read the header, but are RGB when decoded. This will break libvips's guarantees about header and image being consistent, so we can't load them. Reject all images of this type. See #4154 Thanks @mika-fischer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Certain images from the openjpeg test data repo cause vips to crash
Steps to reproduce the behavior:
This happens with the windows builds from 8.15.3 down until 8.12.0. 8.11.4 does not crash. Unfortunately these builds do not contain debug info. But with our custom builds we get the following stack traces on Linux and Windows:
Let me know if I can help resolving this issue.
The text was updated successfully, but these errors were encountered: