diff options
Diffstat (limited to 'editor')
-rw-r--r-- | editor/pamenlarge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/pamenlarge.c b/editor/pamenlarge.c index 56a8c6f7..eb3b6ba2 100644 --- a/editor/pamenlarge.c +++ b/editor/pamenlarge.c @@ -690,6 +690,7 @@ enlargePbm(struct pam * const inpamP, unsigned int const rightPadding = scaleMethod == METHOD_GENERAL ? 0 : (xScaleFactor - 1) * 8; + assert (outcols < UINT_MAX - rightPadding); outrow = pbm_allocrow_packed(outcols + rightPadding); if (scaleMethod == METHOD_GENERAL) |