[Poppler-bugs] [Bug 106295] New: poppler_document_new_from_stream creates PopplerInputStream with zero length

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Apr 28 12:37:11 UTC 2018


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

            Bug ID: 106295
           Summary: poppler_document_new_from_stream creates
                    PopplerInputStream with zero length
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: glib frontend
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: pochu27 at gmail.com

Hi,

I got this report: https://github.com/ruby-gnome2/ruby-gnome2/issues/1159
from Debian's: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896596

Looks like poppler_document_new_from_stream() creates a PopplerInputStream with
zero length even when _new_from_stream's length parameter is specified. That
seems to cause some problems with PDFDoc's getLength() check:

https://cgit.freedesktop.org/poppler/poppler/commit/?id=a59f61641fcb36859b625749afb4561557e419f6

There's a patch in https://github.com/ruby-gnome2/ruby-gnome2/issues/1159. I
don't know if that needs a check for length == -1 (i.e. unknown)

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


More information about the Poppler-bugs mailing list