poppler/Gfx.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) New commits: commit bb25c0d46f1f0e037805f0c6dde07f3ea9c9320c Author: Albert Astals Cid <aa...@kde.org> Date: Tue May 29 00:55:28 2018 +0200
Gfx::doRadialShFill: Initialize colorA, colorB and colorC fixes oss-fuzz/8587 diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc index 4183e4f7..572f435c 100644 --- a/poppler/Gfx.cc +++ b/poppler/Gfx.cc @@ -2903,7 +2903,7 @@ void Gfx::doRadialShFill(GfxRadialShading *shading) { double xMin, yMin, xMax, yMax; double x0, y0, r0, x1, y1, r1, t0, t1; int nComps; - GfxColor colorA, colorB; + GfxColor colorA = {}, colorB = {}, colorC = {}; double xa, ya, xb, yb, ra, rb; double ta, tb, sa, sb; double sz, xz, yz, sMin, sMax; @@ -3079,7 +3079,6 @@ void Gfx::doRadialShFill(GfxRadialShading *shading) { // same color does not mean all the areas in between have the same color too int ic = ia + 1; for (; ic <= ib; ic++) { - GfxColor colorC; const double sc = sMin + ((double)ic / (double)radialMaxSplits) * (sMax - sMin); const double tc = t0 + sc * (t1 - t0); getShadingColorRadialHelper(t0, t1, tc, shading, &colorC); _______________________________________________ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler