Bug 9760 - poppler_page_get_thumbnail_size crashes on bad thumbnails
Summary: poppler_page_get_thumbnail_size crashes on bad thumbnails
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL: http://platin.uni-duisburg.de/downloa...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-25 08:53 UTC by Tom Parker
Modified: 2007-12-25 20:22 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Fixes for the bugs (1.06 KB, patch)
2007-01-25 08:55 UTC, Tom Parker
Details | Splinter Review

Description Tom Parker 2007-01-25 08:53:45 UTC
(This was originally http://bugzilla.gnome.org/show_bug.cgi?id=398406)

Poppler crashes in poppler_page_get_thumbnail_size (glib bindings) on documents with bad thumbnails as well as Page::loadThumb.
Comment 1 Tom Parker 2007-01-25 08:55:05 UTC
Created attachment 8502 [details] [review]
Fixes for the bugs

Corrects both errors by checking isError as well as isNull before using the returned thumbs.
Comment 2 Brad Hards 2007-11-04 22:47:55 UTC
The original source of the document (http://platin.uni-duisburg.de) appears to be gone.

Tom / Thomas: do you have the original document, or a link to it, or another example that shows the problem?

Comment 3 Brad Hards 2007-12-25 20:22:50 UTC
I applied the patch as commit 8341743.

If there are still problems, please reopen this bug and attach an example of the problem file.


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.