about summary refs log tree commit diff
path: root/editor/pamcut.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-11-07 00:55:32 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-11-07 00:55:32 +0000
commitce8330b08c1941259d9a3c93cf6aacdc2c95e3aa (patch)
tree21b098eff528a0badfbe22ded1dd35b924456ebe /editor/pamcut.c
parent4235b3a1b48c013e3882e90dd430234e408773f4 (diff)
downloadnetpbm-mirror-ce8330b08c1941259d9a3c93cf6aacdc2c95e3aa.tar.gz
netpbm-mirror-ce8330b08c1941259d9a3c93cf6aacdc2c95e3aa.tar.xz
netpbm-mirror-ce8330b08c1941259d9a3c93cf6aacdc2c95e3aa.zip
Revert accidental commit from a few minutes ago
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4174 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/pamcut.c')
-rw-r--r--editor/pamcut.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/pamcut.c b/editor/pamcut.c
index 7870fd70..1fc9d9b2 100644
--- a/editor/pamcut.c
+++ b/editor/pamcut.c
@@ -712,7 +712,7 @@ extractRowsPBM(const struct pam * const inpamP,
 
     if (leftcol > 0) {
         totalWidth = MAX(rightcol+1, inpamP->width) + 7;
-        if (totalWidth > INT_MAX - 10)
+        if (totalWidth > INT_MAX)
             /* Prevent overflows in pbm_allocrow_packed() */
             pm_error("Specified right edge is too far "
                      "from the right end of input image");
@@ -721,7 +721,7 @@ extractRowsPBM(const struct pam * const inpamP,
         writeOffset = leftcol;
     } else {
         totalWidth = -leftcol + MAX(rightcol+1, inpamP->width);
-        if (totalWidth > INT_MAX - 10)
+        if (totalWidth > INT_MAX)
             pm_error("Specified left/right edge is too far "
                      "from the left/right end of input image");