Bug 104339 - Poppler::Document::page will crash if the document is locked
Summary: Poppler::Document::page will crash if the document is locked
Status: RESOLVED INVALID
Alias: None
Product: poppler
Classification: Unclassified
Component: qt frontend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-19 15:21 UTC by Noah Hamerslough
Modified: 2017-12-19 23:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Noah Hamerslough 2017-12-19 15:21:50 UTC
Load any password protected pdf without providing a password. Attempting to get a page from that document will crash at the last line of PDFDoc::getPage because catalog is dereferenced without checking if it has been created yet.
Comment 1 Albert Astals Cid 2017-12-19 15:51:30 UTC
yes, don't do that.
Comment 2 Albert Astals Cid 2017-12-19 23:03:42 UTC
I'm going to close this, you're using the API wrong and it's crashing, fix is to use the API right.


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.