Bug 97159 - XRef::createDocInfoIfNoneExists() shouldn't presume that DocInfo is a dictionary
Summary: XRef::createDocInfoIfNoneExists() shouldn't presume that DocInfo is a dictionary
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-31 23:52 UTC by Jakub Alba
Modified: 2016-08-01 21:05 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
[PATCH] XRef::createDocInfoIfNoneExists(): don't presume that DocInfo is a dictionary (1020 bytes, patch)
2016-07-31 23:53 UTC, Jakub Alba
Details | Splinter Review

Description Jakub Alba 2016-07-31 23:52:50 UTC
If there is a PDF document which doesn't comply with the PDF reference and its DocInfo object is not a dictionary, then XRef::createDocInfoIfNoneExists() will fail. And apparently (as Bug 97134 shows) there are such documents.
Comment 1 Jakub Alba 2016-07-31 23:53:15 UTC
Created attachment 125452 [details] [review]
[PATCH] XRef::createDocInfoIfNoneExists(): don't presume that DocInfo is a dictionary
Comment 2 Albert Astals Cid 2016-08-01 21:05:59 UTC
Pushed


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.