b2f6fbd9dd
fixes CVE-2017-7885, CVE-2017-7975 and CVE-2017-7976. Patches taken from the upstream ghostpdl git repository, http://git.ghostscript.com/?p=ghostpdl.git git revisions b184e783702246e154294326d03d9abda669fcfa ed6c5133a1004ce8d38f1b44de85a7186feda95e 5e57e483298dae8b8d4ec9aab37a526736ac2e97 and 73060a27e554f8e64ae2aba4a1b03822207346c7
15 lines
622 B
Diff
15 lines
622 B
Diff
diff --git a/jbig2dec/jbig2_huffman.c b/jbig2dec/jbig2_huffman.c
|
|
index 511e461..b4189a1 100644 (file)
|
|
--- jbig2_huffman.c
|
|
+++ jbig2_huffman.c
|
|
@@ -421,8 +421,8 @@ jbig2_build_huffman_table(Jbig2Ctx *ctx, const Jbig2HuffmanParams *params)
|
|
|
|
if (PREFLEN == CURLEN) {
|
|
int RANGELEN = lines[CURTEMP].RANGELEN;
|
|
- int start_j = CURCODE << shift;
|
|
- int end_j = (CURCODE + 1) << shift;
|
|
+ uint32_t start_j = CURCODE << shift;
|
|
+ uint32_t end_j = (CURCODE + 1) << shift;
|
|
byte eflags = 0;
|
|
|
|
if (end_j > max_j) {
|