diff options
-rw-r--r-- | doc/HISTORY | 4 | ||||
-rw-r--r-- | other/pamstack.c | 5 | ||||
-rw-r--r-- | version.mk | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/doc/HISTORY b/doc/HISTORY index fed027ed..ed980251 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -4,6 +4,10 @@ Netpbm. CHANGE HISTORY -------------- +23.08.05 BJH Release 11.03.02 + + Fix -lcmmaxval fix in 11.03.01. + 23.08.02 BJH Release 11.03.01 pamstack: fix bug: acts like -firstmaxval specified when it diff --git a/other/pamstack.c b/other/pamstack.c index 3f974a3a..285e02c0 100644 --- a/other/pamstack.c +++ b/other/pamstack.c @@ -13,6 +13,7 @@ -----------------------------------------------------------------------------*/ #include <string.h> +#include <assert.h> #include "pm_c_util.h" #include "mallocvar.h" @@ -236,8 +237,10 @@ processOneImageInAllStreams(unsigned int const nInput, if (inpam[inputSeq].maxval != inpam[0].maxval) allImagesSameMaxval = false; + assert(PAM_OVERALL_MAXVAL <= UINT_MAX-1); + maxvalLcm = pm_lcm(maxvalLcm + 1, inpam[inputSeq].maxval + 1, 1, - PAM_OVERALL_MAXVAL) - 1; + PAM_OVERALL_MAXVAL + 1) - 1; outputDepth += inpam[inputSeq].depth; } diff --git a/version.mk b/version.mk index feae3b21..19c58603 100644 --- a/version.mk +++ b/version.mk @@ -1,3 +1,3 @@ NETPBM_MAJOR_RELEASE = 11 NETPBM_MINOR_RELEASE = 3 -NETPBM_POINT_RELEASE = 1 +NETPBM_POINT_RELEASE = 2 |