Bug 106295 - poppler_document_new_from_stream creates PopplerInputStream with zero length
Summary: poppler_document_new_from_stream creates PopplerInputStream with zero length
Status: NEW
Alias: None
Product: poppler
Classification: Unclassified
Component: glib frontend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
Depends on:
Reported: 2018-04-28 12:37 UTC by Emilio Pozuelo Monfort
Modified: 2018-04-28 15:37 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Note You need to log in before you can comment on or make changes to this bug.
Description Emilio Pozuelo Monfort 2018-04-28 12:37:11 UTC

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:


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)

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.