Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
poppler.30722
poppler-CVE-2022-37051.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File poppler-CVE-2022-37051.patch of Package poppler.30722
diff --git a/utils/pdfunite.cc b/utils/pdfunite.cc index b96b0378a878409ca450bb241f94446a4f27a990..050927d3bd4ddfb5192deb07ea2eb3c6fde26691 100644 --- a/utils/pdfunite.cc +++ b/utils/pdfunite.cc @@ -197,6 +197,14 @@ int main(int argc, char *argv[]) Object ocObj; if (docs.size() >= 1) { Object catObj = docs[0]->getXRef()->getCatalog(); + if(!catObj.isDict()){ + fclose(f); + delete yRef; + delete countRef; + delete outStr; + error(errSyntaxError, -1, "XRef's Catalog is not a dictionary."); + return -1; + } Dict *catDict = catObj.getDict(); intents = catDict->lookup("OutputIntents"); afObj = catDict->lookupNF("AcroForm").copy(); @@ -295,6 +303,14 @@ int main(int argc, char *argv[]) } } Object pageCatObj = docs[i]->getXRef()->getCatalog(); + if(!pageCatObj.isDict()){ + fclose(f); + delete yRef; + delete countRef; + delete outStr; + error(errSyntaxError, -1, "XRef's Catalog is not a dictionary."); + return -1; + } Dict *pageCatDict = pageCatObj.getDict(); Object pageNames = pageCatDict->lookup("Names"); if (!pageNames.isNull() && pageNames.isDict()) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor