diff options
Diffstat (limited to 'lib/libpbm2.c')
-rw-r--r-- | lib/libpbm2.c | 4 |
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); } |