Bug 690371 - JPEG 2000 crash
Summary: JPEG 2000 crash
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: All All
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-02 04:41 UTC by Tor Andersson
Modified: 2009-07-02 16:16 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
HSBC.pdf (480.68 KB, application/pdf)
2009-04-02 04:42 UTC, Tor Andersson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tor Andersson 2009-04-02 04:41:46 UTC
I get a bus error in jasper on the attached test file in MuPDF.

#0  0x00086adf in jp2_decode (in=0x721ee0, optstr=0x0) at jp2_dec.c:395
#1  0x0007d9a6 in jas_image_decode (in=0x721ee0, fmt=-1, optstr=0x0) at jas_image.c:380
#2  0x0005115c in fz_processjpxd (filter=0x721c00, in=0x721f80, out=0x721fc0) at fitz/filt_jpxd.c:103
Comment 1 Tor Andersson 2009-04-02 04:42:52 UTC
Created attachment 4883 [details]
HSBC.pdf
Comment 2 Ken Sharp 2009-04-02 05:18:34 UTC
It may or may not be relevant, but this PDF file is damaged. Although created
9th January 2009, it was modified on 17th February 2009, I would suspect the
edit of having caused the damage.

Opening the file with Acrobat briefly displays a warning before displaying the
page, and when you close the file asks if you want to 'save the changes'.

Ghsostcript gives a warning that the xref table is damaged, then 24 warnings
about stream lengths being incorrect, and finally 24 errors reading content streams.

It does however display all the pages without causing a crash. Possibly MuPDF is
using an older version of JasPer, or possibly the problem is caused by the
damaged xref/content streams.

Comment 3 Tor Andersson 2009-07-02 16:16:56 UTC
Works with OpenJPEG.