[poppler] poppler/GfxState.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jan 6 11:14:29 UTC 2021


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

New commits:
commit 5c28b47bb4e89d10f82d80d3664384149f8f768d
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Jan 6 12:08:39 2021 +0100

    Fix leak introduced in 0e6c3ff9bb4390d2b426a4cddbb638c19811055d
    
    oss-fuzz/29305

diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index a9ce7a89..8a713d8c 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -1715,6 +1715,7 @@ GfxColorSpace *GfxICCBasedColorSpace::parse(Array *arr, OutputDev *out, GfxState
     obj1 = arr->get(1);
     if (!obj1.isStream()) {
         error(errSyntaxWarning, -1, "Bad ICCBased color space (stream)");
+        delete cs;
         return nullptr;
     }
     unsigned char *profBuf;


More information about the poppler mailing list