poppler/GfxState.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 322f8a453664fbad65c4b998034adf8df2ac0bea
Author: Albert Astals Cid <aa...@kde.org>
Date:   Sat Jun 23 00:41:18 2018 +0200

    GfxDeviceNColorSpace::parse: Fix leak on malformed files
    
    Fixes oss-fuzz/9036

diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index 157bcf44..f065b672 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -3057,7 +3057,8 @@ GfxColorSpace *GfxDeviceNColorSpace::parse(GfxResources 
*res, Array *arr, Output
     Object obj2 = obj1.arrayGet(i);
     if (!obj2.isName()) {
       error(errSyntaxWarning, -1, "Bad DeviceN color space (names)");
-      goto err1;
+      nCompsA = i;
+      goto err3;
     }
     namesA[i] = new GooString(obj2.getName());
   }
_______________________________________________
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to