[poppler] poppler/SplashOutputDev.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Dec 12 18:38:14 UTC 2020
poppler/SplashOutputDev.cc | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit ac9e14b9eca50ec3ff25b2cdb4c97e3728ff1f47
Author: Albert Astals Cid <aacid at kde.org>
Date: Sat Dec 12 19:25:41 2020 +0100
SplashOutputDev: Fix crash on broken files
oss-fuzz/28582
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 065dd5ff..403c596b 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -2717,6 +2717,10 @@ void SplashOutputDev::unsetSoftMaskFromImageMask(GfxState *state, double *baseMa
{
double bbox[4] = { 0, 0, 1, 1 }; // dummy
+ if (!transpGroupStack) {
+ return;
+ }
+
/* transfer mask to alpha channel! */
// memcpy(maskBitmap->getAlphaPtr(), maskBitmap->getDataPtr(), bitmap->getRowSize() * bitmap->getHeight());
// memset(maskBitmap->getDataPtr(), 0, bitmap->getRowSize() * bitmap->getHeight());
More information about the poppler
mailing list