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

Abort: Assertion `dec->image->cmprof_' failed (jp2_dec.c) #139

Closed
jridky opened this issue May 23, 2017 · 3 comments
Closed

Abort: Assertion `dec->image->cmprof_' failed (jp2_dec.c) #139

jridky opened this issue May 23, 2017 · 3 comments

Comments

@jridky
Copy link

jridky commented May 23, 2017

Quick reproducer using jasper:

$ curl -sO http://www.fnordware.com/j2k/relax.jp2
$ jasper --input relax.jp2 --output /dev/null --output-format jpg
ICC Profile CS 52474220
jasper: jp2_dec.c:308: jp2_decode: Assertion `dec->image->cmprof_' failed.
Aborted (core dumped)

debug output: here

@nullne
Copy link

nullne commented Aug 1, 2017

same problem, who can provide any solutions?

@D4N
Copy link

D4N commented Jan 5, 2018

In case it provides any further insight, a file that caused a bug in exiv2 causes the same assertion with jasper and makes pcmanfm crash when I open my exiv2 folder with the images for regression tests.

The issue is can be found here. The problem in that case was an arithmetic overflow, as it can be found in the discussion of the bug report. Hope this helps a bit.

@jubalh
Copy link
Member

jubalh commented Jul 28, 2020

Fixed with our merges from jasper-maint:

jasper --input ~/jasper/relax.jp2 --output /dev/null --output-format jpg
ICC Profile CS 52474220
error: cannot load image data

Not entirely sure which commit, and don't think git bisecting it is worth it here.
2.0.19 is thus fixed.

@jubalh jubalh closed this as completed Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants