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

See Also:
i915 platform:
i915 features:


Attachments

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.