[poppler] poppler/FontInfo.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Mar 25 15:05:38 PDT 2008


 poppler/FontInfo.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0be811b3ad86b1cb14be94a017e70c65b8e64730
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue Mar 25 22:59:22 2008 +0100

    Don't end up in an infinite recursive loop in case resObj dict is the same we are already in

diff --git a/poppler/FontInfo.cc b/poppler/FontInfo.cc
index e6870f0..555b3aa 100644
--- a/poppler/FontInfo.cc
+++ b/poppler/FontInfo.cc
@@ -125,7 +125,7 @@ void FontInfoScanner::scanFonts(Dict *resDict, GooList *fontsList) {
       xObjDict.dictGetVal(i, &xObj);
       if (xObj.isStream()) {
 	xObj.streamGetDict()->lookup("Resources", &resObj);
-	if (resObj.isDict()) {
+	if (resObj.isDict() && resObj.getDict() != resDict) {
 	  scanFonts(resObj.getDict(), fontsList);
 	}
 	resObj.free();


More information about the poppler mailing list