Commit b5db021a authored by Albert Astals Cid's avatar Albert Astals Cid

GfxUnivariateShading::setupCache: gmallocn -> gmallocn_checkoverflow

oss-fuzz/10508
parent ab1b051a
......@@ -4008,7 +4008,9 @@ void GfxUnivariateShading::setupCache(const Matrix *ctm,
tMax = t0 + sMin * (t1 - t0);
}
cacheBounds = (double *)gmallocn(maxSize, sizeof(double) * (nComps + 2));
cacheBounds = (double *)gmallocn_checkoverflow(maxSize, sizeof(double) * (nComps + 2));
if (unlikely(!cacheBounds))
return;
cacheCoeff = cacheBounds + maxSize;
cacheValues = cacheCoeff + maxSize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment