Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
poppler.34110
poppler-CVE-2022-37050.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File poppler-CVE-2022-37050.patch of Package poppler.34110
From dcd5bd8238ea448addd102ff045badd0aca1b990 Mon Sep 17 00:00:00 2001 From: crt <chluo@cse.cuhk.edu.hk> Date: Wed, 27 Jul 2022 08:40:02 +0000 Subject: [PATCH] pdfseparate: Check XRef's Catalog for being a Dict --- poppler/PDFDoc.cc | 4 ++++ 1 file changed, 4 insertions(+) Index: poppler-0.43.0/poppler/PDFDoc.cc =================================================================== --- poppler-0.43.0.orig/poppler/PDFDoc.cc +++ poppler-0.43.0/poppler/PDFDoc.cc @@ -750,6 +750,14 @@ int PDFDoc::savePageAs(GooString *name, // get and mark output intents etc. Object catObj, pagesObj, resourcesObj, annotsObj, afObj; getXRef()->getCatalog(&catObj); + if (!catObj.isDict()) { + fclose(f); + delete yRef; + delete countRef; + delete outStr; + error(errSyntaxError, -1, "XRef's Catelog is not a dictionary"); + return errOpenFile; + } Dict *catDict = catObj.getDict(); catDict->lookup("Pages", &pagesObj); catDict->lookupNF("AcroForm", &afObj);
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