summaryrefslogtreecommitdiff
path: root/jbig2dec/jbig2_huffman.h
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-06-20 01:38:41 +0800
committerSebastian Rasmussen <sebras@gmail.com>2018-07-24 21:13:51 +0800
commit6f06c79a4f0ee664840ce7bedc35dafc921e5086 (patch)
treea2bab5e2d4c11d27fc91f7c36573646fd019776c /jbig2dec/jbig2_huffman.h
parentc01e08cf984192defb63017e1a11a9f1bf05f9ef (diff)
downloadghostpdl-6f06c79a4f0ee664840ce7bedc35dafc921e5086.tar.gz
jbig2dec: Cast BMSIZE in symbol dicts to size_t.
BMSIZE is used to skip over uncompressed symbols in a symbol dictionary. Therefore this value is inherently unsigned. Also because the value is a multiplication of the height and stride of an image, both of which are unsigned 32 bit numbers, rely on the size_t type which is large enough to handle images this big.
Diffstat (limited to 'jbig2dec/jbig2_huffman.h')
-rw-r--r--jbig2dec/jbig2_huffman.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/jbig2dec/jbig2_huffman.h b/jbig2dec/jbig2_huffman.h
index 085768d40..8f96f64db 100644
--- a/jbig2dec/jbig2_huffman.h
+++ b/jbig2dec/jbig2_huffman.h
@@ -62,7 +62,7 @@ void jbig2_huffman_free(Jbig2Ctx *ctx, Jbig2HuffmanState *hs);
int jbig2_huffman_skip(Jbig2HuffmanState *hs);
-int jbig2_huffman_advance(Jbig2HuffmanState *hs, int offset);
+int jbig2_huffman_advance(Jbig2HuffmanState *hs, size_t advance);
uint32_t jbig2_huffman_offset(Jbig2HuffmanState *hs);