summaryrefslogtreecommitdiff
path: root/jbig2dec/jbig2_huffman.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-06-01 16:56:39 -0700
committerSebastian Rasmussen <sebras@gmail.com>2018-07-13 16:54:31 +0800
commit8ea06bef59929bbaa0450a94ab9586dd154657e8 (patch)
treedb2a90d0dbd5467e5f441075b6e6b5357748c9d3 /jbig2dec/jbig2_huffman.c
parent443588c95d5776f141940d57aee2b3a0a21b668f (diff)
downloadghostpdl-8ea06bef59929bbaa0450a94ab9586dd154657e8.tar.gz
jbig2dec: Make sure to return fatal/warnings when propagating error.
Diffstat (limited to 'jbig2dec/jbig2_huffman.c')
-rw-r--r--jbig2dec/jbig2_huffman.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/jbig2dec/jbig2_huffman.c b/jbig2dec/jbig2_huffman.c
index 7f267d1f6..2a0c8d40e 100644
--- a/jbig2dec/jbig2_huffman.c
+++ b/jbig2dec/jbig2_huffman.c
@@ -694,6 +694,8 @@ jbig2_find_table(Jbig2Ctx *ctx, Jbig2Segment *segment, int index)
++table_index;
}
}
+
+ jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "huffman table not found (%d)", index);
return NULL;
}