about summary refs log tree commit diff
path: root/lib/libpbm2.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-10-17 04:36:14 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-10-17 04:36:14 +0000
commit1f028a3d66db42414e29bb3c86b690f290e2af85 (patch)
tree298e41f786d0b0df4968065970967a12223df138 /lib/libpbm2.c
parentc49999caa64dc28c155fd4602c82df32b1f27335 (diff)
downloadnetpbm-mirror-1f028a3d66db42414e29bb3c86b690f290e2af85.tar.gz
netpbm-mirror-1f028a3d66db42414e29bb3c86b690f290e2af85.tar.xz
netpbm-mirror-1f028a3d66db42414e29bb3c86b690f290e2af85.zip
Release 10.86.25
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@4156 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/libpbm2.c')
-rw-r--r--lib/libpbm2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpbm2.c b/lib/libpbm2.c
index a35004f9..2fec4788 100644
--- a/lib/libpbm2.c
+++ b/lib/libpbm2.c
@@ -72,9 +72,9 @@ validateComputableSize(unsigned int const cols,
    A common operation is adding 1 or 2 to the highest row or
    column number in the image, so we make sure that's possible.
 -----------------------------------------------------------------------------*/
-    if (cols > INT_MAX - 2)
+    if (cols > INT_MAX - 10)
         pm_error("image width (%u) too large to be processed", cols);
-    if (rows > INT_MAX - 2)
+    if (rows > INT_MAX - 10)
         pm_error("image height (%u) too large to be processed", rows);
 }