[poppler] splash/SplashBitmap.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Oct 19 19:37:00 UTC 2022


 splash/SplashBitmap.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 907d05a6a141284aee22fbd16ab0a2fb4e0f2724
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Oct 19 21:30:05 2022 +0200

    Fix crash in file that wants to do huge transparency group
    
    huge = 2147483016 x 2
    
    Issue #1305

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;
         }


More information about the poppler mailing list