[poppler] poppler/GfxState.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Fri Jun 22 22:41:47 UTC 2018


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

New commits:
commit 322f8a453664fbad65c4b998034adf8df2ac0bea
Author: Albert Astals Cid <aacid at 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());
   }


More information about the poppler mailing list