[poppler] poppler/Gfx.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sun Jun 28 07:45:51 PDT 2009


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

New commits:
commit 40002d2c765398869a3b7d8d92715f0608e39ab3
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sun Jun 28 16:45:19 2009 +0200

    Make sure the array is big enough to read from it

diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index 63793a5..c11f551 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -4512,7 +4512,7 @@ void Gfx::drawAnnot(Object *str, AnnotBorder *border, AnnotColor *aColor,
 
     // get the form matrix
     dict->lookup("Matrix", &matrixObj);
-    if (matrixObj.isArray()) {
+    if (matrixObj.isArray() && matrixObj.arrayGetLength() >= 6) {
       for (i = 0; i < 6; ++i) {
 	matrixObj.arrayGet(i, &obj1);
 	m[i] = obj1.getNum();


More information about the poppler mailing list