Bug 85139 - [pdftocairo] Segfault in openjpeg
Summary: [pdftocairo] Segfault in openjpeg
Status: RESOLVED INVALID
Alias: None
Product: poppler
Classification: Unclassified
Component: utils (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-17 13:29 UTC by MH
Modified: 2014-10-17 14:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
openjpeg-crash.pdf (740.33 KB, text/plain)
2014-10-17 13:29 UTC, MH
Details
defect jp2 (91.17 KB, application/octet-stream)
2014-10-17 14:42 UTC, Thomas Freitag
Details

Description MH 2014-10-17 13:29:38 UTC
Created attachment 107988 [details]
openjpeg-crash.pdf

OS: Fedora 20 (running in virtualbox)
Dependencies installed with: yum-builddep poppler
Version: GIT Master
Command line: master/pdftocairo -svg <attached.pdf> /dev/null

Crash in libopenjpeg, tried to extract images with pdfimages, but it crashes with same error.

###########################################################################
GDB output:

Reading symbols from /home/foobar/poppler/utils/.libs/lt-pdftocairo...done.
Starting program: /home/foobar/poppler/utils/.libs/lt-pdftocairo -svg segfault-openjpeg-tdc_malloc_decode_tile-611-pdftocairofuzz-9.pdf /dev/null
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7058406 in tcd_malloc_decode_tile () from /lib64/libopenjpeg.so.1
Comment 1 Albert Astals Cid 2014-10-17 13:41:40 UTC
We don't fix crashes in openjpeg, report it to them :)
Comment 2 MH 2014-10-17 13:45:36 UTC
Asked in IRC channel, since couldn't extract jpeg with pdfimages was told to report here, sorry :)
Comment 3 Thomas Freitag 2014-10-17 14:17:08 UTC
(In reply to MH from comment #2)
> Asked in IRC channel, since couldn't extract jpeg with pdfimages was told to
> report here, sorry :)

It is not possible to extract defect jpg2000 images (images which crashes in openjpeg library) with poppler, because opj_decode is already called when try to get the image params (8 bit, RGB or Grayscale)
Comment 4 Thomas Freitag 2014-10-17 14:42:30 UTC
Created attachment 107993 [details]
defect jp2

I send comment 3 to early, I wanted to explain, that You first have to disable the usage of libopenjpeg:

./configure --disable-libopenjpeg

Than You can use pdfimages with option -all. I attach the defect jp2.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.