SplashBitmap: Fix wrong width condition for splashModeDeviceN8
diff --git a/splash/SplashBitmap.cc b/splash/SplashBitmap.cc
index 6b3957d..e16baf6 100644
--- a/splash/SplashBitmap.cc
+++ b/splash/SplashBitmap.cc
@@ -11,7 +11,7 @@
 // All changes made under the Poppler project to this file are licensed
 // under GPL version 2 or later
 //
-// Copyright (C) 2006, 2009, 2010, 2012, 2015, 2018 Albert Astals Cid <aacid@kde.org>
+// Copyright (C) 2006, 2009, 2010, 2012, 2015, 2018, 2019 Albert Astals Cid <aacid@kde.org>
 // Copyright (C) 2007 Ilmari Heikkinen <ilmari.heikkinen@gmail.com>
 // Copyright (C) 2009 Shen Liang <shenzhuxi@gmail.com>
 // Copyright (C) 2009 Stefan Thomas <thomas@eload24.com>
@@ -97,8 +97,8 @@
     }
     break;
   case splashModeDeviceN8:
-    if (width > 0 && width <= INT_MAX / 4) {
-      rowSize = width * (SPOT_NCOMPS + 4);
+    if (width > 0 && width <= static_cast<int>(INT_MAX / splashMaxColorComps)) {
+      rowSize = width * splashMaxColorComps;
     } else {
       rowSize = -1;
     }