[poppler] poppler/Gfx.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Nov 9 23:40:00 UTC 2016


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

New commits:
commit b837ae3bc69c5c76f1a4e3abaeb22d0574d6b2c8
Author: Thomas Freitag <Thomas.Freitag at alfa.de>
Date:   Thu Nov 10 00:33:17 2016 +0100

    Continue rendering in case of 'Singular matrix in shading pattern fill'
    
    Bug #98623

diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index 7d748b9..a8f5be9 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -2348,6 +2348,7 @@ void Gfx::doShadingPatternFill(GfxShadingPattern *sPat,
   det = ctm[0] * ctm[3] - ctm[1] * ctm[2];
   if (fabs(det) < 0.000001) {
     error(errSyntaxError, getPos(), "Singular matrix in shading pattern fill");
+    restoreStateStack(savedState);
     return;
   }
   det = 1 / det;


More information about the poppler mailing list