shithub: jbig2

Download patch

ref: 2e42e1c26456fb205f88dd1985de649026970530
parent: 558fba599b82153f8d3df3618b8f707bdda46fbf
author: Sebastian Rasmussen <[email protected]>
date: Fri Jun 1 10:33:11 EDT 2018

jbig2dec: Make sure to print fatal error upon detected error.

--- a/jbig2_huffman.c
+++ b/jbig2_huffman.c
@@ -301,7 +301,7 @@
         if (flags == (byte) -1 && PREFLEN == (byte) -1 && entry->u.RANGELOW == -1) {
             if (oob)
                 *oob = -1;
-            return -1;
+            return jbig2_error(hs->ctx, JBIG2_SEVERITY_FATAL, -1, "encountered unpopulated huffman table entry");
         }
 
         next_word = hs->next_word;