Bug 29371 - crash on opening corrupt pdf
Summary: crash on opening corrupt pdf
Status: RESOLVED NOTOURBUG
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-03 00:38 UTC by Carlos Garcia Campos
Modified: 2010-08-10 12:49 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Carlos Garcia Campos 2010-08-03 00:38:13 UTC
Bug forwarded from Evince: https://bugzilla.gnome.org/show_bug.cgi?id=625849

"Created an attachment (id=166995) [details]
Corrupt PDF from http://www.jailbreakme.com/_/ which causes evince to crash.

I just read there is a bug in the apple iOS pdf reader which can be used to
jailbreak an iPhone [1]. If you open these corrupt files with evince, it
crashes leaving the following message:

$ evince iPod3,1_3.1.3.pdf 
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Bad color space 'Cs1'
Error (94): Bad color space (fill)
Error (103): Incorrect number of arguments in 'sc' command
Segmentation fault

This happens with probably all (didn't try them all to be honest) files at
http://www.jailbreakme.com/_/

Just in case the website is down (due to heavy traffic or whatever) I attached
one of the pdfs.

I did a quick search if the bug has already been reported but I can't decide if
any of the "crashes on opening pdf-file" is related to this bug. Sorry if its a
duplicate.

[1]http://www.h-online.com/security/news/item/iPhone-jailbroken-by-Safari-vulnerability-again-Update-1049234.html"

File is also attached to the original bug report.
Comment 1 Albert Astals Cid 2010-08-04 06:56:56 UTC
The crash seems to happen inside freetype, if i compile Freetype 2.4.1 without optimization, everything works, if i use -O2 it crashes. The thing is that neither gdb nor valgrind give much info on where is crashing, probably we'll have to contact freetype devels for some advice.
Comment 2 Albert Astals Cid 2010-08-10 12:49:20 UTC
Works with Freetype 2.4.2


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.