diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-09-28 02:26:12 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-09-28 02:26:12 +0000 |
commit | 1a04fa9529619b1bd59424fda68a76c8a4a59332 (patch) | |
tree | ec7d9e28278c7de6baf519d2d44f52a9edcd7ee7 /other | |
parent | 0d513aca5cbbb8db0a9d127e101ac3b534cc8bf0 (diff) | |
download | netpbm-mirror-1a04fa9529619b1bd59424fda68a76c8a4a59332.tar.gz netpbm-mirror-1a04fa9529619b1bd59424fda68a76c8a4a59332.tar.xz netpbm-mirror-1a04fa9529619b1bd59424fda68a76c8a4a59332.zip |
Release 10.86.39
git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@4696 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other')
-rw-r--r-- | other/pamstack.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/other/pamstack.c b/other/pamstack.c index 308852c8..9e56845f 100644 --- a/other/pamstack.c +++ b/other/pamstack.c @@ -186,6 +186,11 @@ processOneImageInAllStreams(unsigned int const nInput, pm_error("Image no. %u does not have the same maxval as " "Image 0.", inputSeq); } + if (inpam[inputSeq].depth > UINT_MAX - outputDepth) + pm_error("Total number of planes is too large to compute " + "(at least %u plus %u)", + outputDepth, inpam[inputSeq].depth); + outputDepth += inpam[inputSeq].depth; } |