Blame SOURCES/poppler-0.66.0-stack-overflow.patch
|
|
2e1d9e |
From fada09a2ccc11a3a1d308e810f1336d8df6011fd Mon Sep 17 00:00:00 2001
|
|
|
2e1d9e |
From: Albert Astals Cid <aacid@kde.org>
|
|
|
2e1d9e |
Date: Mon, 18 Mar 2019 00:50:00 +0100
|
|
|
2e1d9e |
Subject: pdfunite: Fix stack overflow on broken file
|
|
|
2e1d9e |
|
|
|
2e1d9e |
Fixes issue #741
|
|
|
2e1d9e |
|
|
|
2e1d9e |
diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc
|
|
|
2e1d9e |
index 26842f84..ab4abcad 100644
|
|
|
2e1d9e |
--- a/poppler/PDFDoc.cc
|
|
|
2e1d9e |
+++ b/poppler/PDFDoc.cc
|
|
|
2e1d9e |
@@ -1703,7 +1703,7 @@ void PDFDoc::markObject (Object* obj, XRef *xRef, XRef *countRef, unsigned int n
|
|
|
2e1d9e |
array = obj->getArray();
|
|
|
2e1d9e |
for (int i=0; i<array->getLength(); i++) {
|
|
|
2e1d9e |
Object obj1 = array->getNF(i);
|
|
|
2e1d9e |
- markObject(&obj1, xRef, countRef, numOffset, oldRefNum, newRefNum);
|
|
|
2e1d9e |
+ markObject(&obj1, xRef, countRef, numOffset, oldRefNum, newRefNum, alreadyMarkedDicts);
|
|
|
2e1d9e |
}
|
|
|
2e1d9e |
break;
|
|
|
2e1d9e |
case objDict:
|