summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2022-10-19 21:30:05 +0200
committerAlbert Astals Cid <aacid@kde.org>2022-10-19 21:30:47 +0200
commit907d05a6a141284aee22fbd16ab0a2fb4e0f2724 (patch)
tree58b65a2aa16da77832837281df757a9bff0858bb
parente53f5aae3bce7d09788f2ad62be998895fb9807b (diff)
Fix crash in file that wants to do huge transparency group
huge = 2147483016 x 2 Issue #1305
-rw-r--r--splash/SplashBitmap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/splash/SplashBitmap.cc b/splash/SplashBitmap.cc
index ff0996e9..9656bb1a 100644
--- a/splash/SplashBitmap.cc
+++ b/splash/SplashBitmap.cc
@@ -114,7 +114,7 @@ SplashBitmap::SplashBitmap(int widthA, int heightA, int rowPadA, SplashColorMode
rowSize = -rowSize;
}
if (alphaA) {
- alpha = (unsigned char *)gmallocn(width, height);
+ alpha = (unsigned char *)gmallocn_checkoverflow(width, height);
} else {
alpha = nullptr;
}