[Poppler-bugs] [Bug 76445] SEGV in RescaleDrawImage::getRow

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 28 15:06:25 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=76445

--- Comment #6 from Adrian Johnson <ajohnson at redneon.com> ---
(In reply to comment #5)
> So, if I understand correctly, the problem is that for buggy PDF documents,
> ImageStream::getLine can return NULL, right?

Correct.

> What about the other places
> where we use it too?

I would wait for a PDF that reproduces the problem before I fix it.

> Could we make getRow() return bool and abort the image
> decode when it returns false?

We want to continue on with rendering as much of the document as possible. It
is easier to return zero data when the image stream fails than to add checks
all the way up the stack trace to the drawImage function to handle an error
status.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20140328/48e66fd8/attachment.html>


More information about the Poppler-bugs mailing list