jasper fails with an assertion on some JPEG2000 pictures, the output is: --- $ jasper --input icon.jp2 --output icon.bmp Assertion failed: (dec->numcomps == 3), function jpc_dec_tiledecode, file jpc_de c.c, line 1072. Abort --- There's a Debian Bug report containing an attachment which triggers the bug on: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469786 The picture itself can be downloaded from: http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=icon.jp2;att=2;bug=469786 This bug in libjasper also causes ghostscript's gsc to dump core on some PDFs generated by Adobe InDesign, I can send a test file if needed. I have successfully tested the patch used for the current Debian package of jasper and have attached a patch to graphics/jasper to fix the problem. Fix: Apply the attached patch to the jasper port and update graphics/jasper on your system. Patch attached with submission follows: How-To-Repeat: 1. make -C /usr/ports/graphics/jasper 2. fetch -o icon.jp2 http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=icon.jp2;att=2;bug=469786 3. jasper --input icon.jp2 --output icon.bmp
Responsible Changed From-To: freebsd-ports-bugs->dinoex Over to maintainer (via the GNATS Auto Assign Tool)
dinoex 2011-11-26 07:02:29 UTC FreeBSD ports repository Modified files: graphics/jasper Makefile Added files: graphics/jasper/files patch-jpc_dec.c Log: - fix assertion on some JPEG2000 pictures encoded in (RGBA) PR: 162812 Sumbitted by: Sebastian Klemke Obtained from: Debian, Mathew Eis Feature safe: yes Revision Changes Path 1.38 +1 -1 ports/graphics/jasper/Makefile 1.1 +17 -0 ports/graphics/jasper/files/patch-jpc_dec.c (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed committed, thanks.