[poppler] poppler/GfxState.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Jul 10 22:26:56 UTC 2018


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

New commits:
commit eb1291f86260124071e12226294631ce685eaad6
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Jul 11 00:26:01 2018 +0200

    GfxPatchMeshShading::getParameterizedColor: Fix uninitialized memory read
    
    fixes oss-fuzz/9264

diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index e4b08e71..956a214b 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -5669,7 +5669,7 @@ GfxPatchMeshShading *GfxPatchMeshShading::parse(GfxResources *res, int typeA, Di
 }
 
 void GfxPatchMeshShading::getParameterizedColor(double t, GfxColor *color) {
-  double out[gfxColorMaxComps];
+  double out[gfxColorMaxComps] = {};
 
   for (int j = 0; j < nFuncs; ++j) {
     funcs[j]->transform(&t, &out[j]);


More information about the poppler mailing list