summaryrefslogtreecommitdiff
path: root/backport-CVE-2022-37051.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-04 11:55:05 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-04 11:55:05 +0000
commit771d8006ba97b0d6d8cc0e11c70d4510d905eb3b (patch)
tree272ba40b5a0e4cd755b8c9d65f4dfca72c3d46be /backport-CVE-2022-37051.patch
parent89ee12ce6c850256d87ee377a924808f5c8e5783 (diff)
automatic import of poppler
Diffstat (limited to 'backport-CVE-2022-37051.patch')
-rw-r--r--backport-CVE-2022-37051.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/backport-CVE-2022-37051.patch b/backport-CVE-2022-37051.patch
deleted file mode 100644
index 9c05c3e..0000000
--- a/backport-CVE-2022-37051.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From 4631115647c1e4f0482ffe0491c2f38d2231337b Mon Sep 17 00:00:00 2001
-From: crt <chluo@cse.cuhk.edu.hk>
-Date: Fri, 29 Jul 2022 20:51:11 +0000
-Subject: [PATCH] Check isDict before calling getDict
-
-Issue #1276
----
- utils/pdfunite.cc | 16 ++++++++++++++++
- 1 file changed, 16 insertions(+)
-
-diff --git a/utils/pdfunite.cc b/utils/pdfunite.cc
-index a8116e3..9735096 100644
---- a/utils/pdfunite.cc
-+++ b/utils/pdfunite.cc
-@@ -210,6 +210,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();
-@@ -310,6 +318,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()) {
---
-2.33.0