Bug 162812 - [patch] graphics/jasper fails on some JPEG2000 pictures
Summary: [patch] graphics/jasper fails on some JPEG2000 pictures
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-24 12:30 UTC by Sebastian Klemke
Modified: 2011-11-26 07:25 UTC (History)
0 users

See Also:


Attachments
file.diff (1.40 KB, patch)
2011-11-24 12:30 UTC, Sebastian Klemke
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Klemke 2011-11-24 12:30:11 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-11-24 12:30:23 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-11-26 07:02:43 UTC
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"
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2011-11-26 07:25:30 UTC
State Changed
From-To: open->closed

committed, thanks.