diff options
Diffstat (limited to 'jbig2dec/jbig2_image.c')
-rw-r--r-- | jbig2dec/jbig2_image.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jbig2dec/jbig2_image.c b/jbig2dec/jbig2_image.c index 2cb1e14a..9b9846af 100644 --- a/jbig2dec/jbig2_image.c +++ b/jbig2dec/jbig2_image.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2020 Artifex Software, Inc. +/* Copyright (C) 2001-2021 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -347,8 +347,8 @@ jbig2_image_compose(Jbig2Ctx *ctx, Jbig2Image *dst, Jbig2Image *src, int x, int if (src == NULL) return 0; - if ((UINT32_MAX - src->width < (x > 0 ? x : -x)) || - (UINT32_MAX - src->height < (y > 0 ? y : -y))) + if ((UINT32_MAX - src->width < (uint32_t) (x > 0 ? x : -x)) || + (UINT32_MAX - src->height < (uint32_t) (y > 0 ? y : -y))) { #ifdef JBIG2_DEBUG jbig2_error(ctx, JBIG2_SEVERITY_DEBUG, JBIG2_UNKNOWN_SEGMENT_NUMBER, "overflow in compose_image"); |