summaryrefslogtreecommitdiff
path: root/jbig2dec
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2020-03-21 18:08:43 +0800
committerSebastian Rasmussen <sebras@gmail.com>2020-03-21 20:52:37 +0800
commitd98ab1f82e64e11db6478c4ff3e3bcffcc69836e (patch)
treefd4f7b877fe3517d4f6c2adaf7d1bcc55e25d4ab /jbig2dec
parent1677b6c0d7b090ad7691e766d4809f9badeecd20 (diff)
downloadghostpdl-d98ab1f82e64e11db6478c4ff3e3bcffcc69836e.tar.gz
jbig2dec: Cast literal to avoid shifting outside of valid range.
Fixes Coverity CID 355175.
Diffstat (limited to 'jbig2dec')
-rw-r--r--jbig2dec/jbig2_arith_iaid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jbig2dec/jbig2_arith_iaid.c b/jbig2dec/jbig2_arith_iaid.c
index 4d9fc2d84..8bf1599aa 100644
--- a/jbig2dec/jbig2_arith_iaid.c
+++ b/jbig2dec/jbig2_arith_iaid.c
@@ -53,7 +53,7 @@ jbig2_arith_iaid_ctx_new(Jbig2Ctx *ctx, uint8_t SBSYMCODELEN)
return NULL;
}
- ctx_size = 1U << SBSYMCODELEN;
+ ctx_size = (size_t) 1U << SBSYMCODELEN;
result = jbig2_new(ctx, Jbig2ArithIaidCtx, 1);
if (result == NULL) {