poppler/Gfx.cc |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit ce95ecda450361496aedd5d5cd0bf47fd2c66703
Author: Albert Astals Cid <[email protected]>
Date:   Tue Sep 30 19:50:20 2014 +0200

    Fix assert in 5068.asan.0.6052.pdf

diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index 90bf41e..6bf7ec5 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -980,7 +980,10 @@ void Gfx::opSetDash(Object args[], int numArgs) {
   } else {
     dash = (double *)gmallocn(length, sizeof(double));
     for (i = 0; i < length; ++i) {
-      dash[i] = a->get(i, &obj)->getNum();
+      a->get(i, &obj);
+      if (obj.isNum()) {
+       dash[i] = obj.getNum();
+      }
       obj.free();
     }
   }
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to