Public bug reported:

Evince consistently crashes on some PDFs which (for some reason or
another) apparently contain an empty, zero-sized page. The crash is due
to an assertion failure, so shouldn't be a security problem:

[EMAIL PROTECTED]:~$ evince digi.pdf 
(evince:19079): GdkPixbuf-CRITICAL **: gdk_pixbuf_new: assertion `height > 0' 
failed
(evince:19079): GdkPixbuf-CRITICAL **: gdk_pixbuf_fill: assertion 
`GDK_IS_PIXBUF (pixbuf)' failed
(evince:19079): Poppler-CRITICAL **: void 
poppler_page_render_to_pixbuf(PopplerPage*, int, int, int, int, double, int, 
GdkPixbuf*): assertion `pixbuf != NULL' failed
** ERROR **: file ev-document-misc.c: line 35 
(ev_document_misc_get_thumbnail_frame): assertion failed: (width_r >= 0 && 
height_r >= 0)
aborting...
Aborted (core dumped)

The PDF displays properly on gv, xpdf and from third party reports,
Adobe Acrobat. gv and xpdf display the first page as a thin horizontal
line, suggesting that the page is very small in size (and in fact,
reading the assertion failure, seems to be zero).

These cases should rather be handled gracefully, perchance skipping the
logical page altogether.

I'll try and add a test file to this report after this.

** Affects: evince (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Crash on zero-sized page in a PDF
https://bugs.launchpad.net/bugs/137635
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to