Red Hat Bugzilla – Bug 305471
libjasper crash viewing a jpeg2000 file
Last modified: 2007-11-30 17:12:16 EST
Get http://www.fnordware.com/j2k/relax.jp2 from
http://www.fnordware.com/j2k/jp2samples.html , try to view it with an app that
uses jasper such as jiv -> crash (assertion failure).
$ rpm -q jasper
$ jiv relax.jp2
ICC Profile CS 52474220
jiv: jp2_dec.c:299: jp2_decode: Assertion `dec->image->cmprof_' failed.
Aborted (core dumped)
Created attachment 205661 [details]
Backtrace of libjasper crash
Here's the comment I received on the jasper ml:
"Image was produce by Kakadu 3.2. None of new Kakadu software
(http://www.kakadusoftware.com/) could display it correctly. So it
must be a wrong encoded image in early implementation."
So, the evidence (so far) points to an incorrect image, Closing->NOTABUG.
Please reopen if you find other examples on non-working jp2 images.
If the image is faulty, not displaying and gracefully erroring out would be
fine, but I think crashing/aborting is definitely not ok (DoS, ditto possibly
for apps that are linked against libjasper, such as kdelibs...)
upstream has been notified.