Bug 106295

Summary: poppler_document_new_from_stream creates PopplerInputStream with zero length
Product: poppler Reporter: Emilio Pozuelo Monfort <pochu27>
Component: glib frontendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium CC: dai
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Emilio Pozuelo Monfort 2018-04-28 12:37:11 UTC
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)
Comment 1 GitLab Migration User 2018-08-21 10:53:46 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/414.

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.