[Poppler-bugs] [Bug 24575] evince crashed with SIGSEGV in CairoOutputDev::restoreState()

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Nov 20 23:19:02 PST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=24575





--- Comment #1 from David Benjamin <davidben at mit.edu>  2009-11-20 23:19:01 PST ---
Created an attachment (id=31363)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=31363)
Do not restoreState on empty stack

This PDF is horrendously malformed. As far as I can tell, several of the pages
have command streams missing spaces and who knows what else. Even acroread will
display an error. That said, acroread does not crash and does a much better job
rendering it than we do.

The confused command stream results in a restoreState without the right number
of saveStates. The above patch causes that to result in a warning.

We probably want to try being lenient about parsing the command stream to allow
one to omit the spaces before/after commands? I suspect this is what acroread
is doing. This may be tricky as some commands (d0 and d1) end in numbers.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list