poppler/Gfx.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 487f20d24830a97cad4773ae27f0c2cc58df2ed0
Author: Albert Astals Cid <[email protected]>
Date: Thu Dec 13 20:40:39 2012 +0100
Check obj1 is a dict before using it
Fixes bug #58257
diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index 99c326e..5c9ed35 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -4601,7 +4601,7 @@ GBool Gfx::checkTransparencyGroup(Dict *resDict) {
Object obj1, obj2;
GfxBlendMode mode;
- if (res->lookupGState(dict->getKey(i), &obj1)) {
+ if (res->lookupGState(dict->getKey(i), &obj1) && obj1.isDict()) {
if (!obj1.dictLookup("BM", &obj2)->isNull()) {
if (state->parseBlendMode(&obj2, &mode)) {
if (mode != gfxBlendNormal)
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler