shithub: jbig2

Download patch

ref: e4253bb1b503849fcab5c44a269842c585931d7c
parent: 04004561cba7f208162e121f472f1fdc756423b7
author: Sebastian Rasmussen <[email protected]>
date: Thu Jun 28 21:54:15 EDT 2018

jbig2dec: Handling missing OOB at end of height class.

--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -427,8 +427,8 @@
 
             /* check for broken symbol table */
             if (NSYMSDECODED >= params->SDNUMNEWSYMS) {
-                jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "no OOB signaling end of height class %d", HCHEIGHT);
-                goto cleanup;
+                jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, "no OOB signaling end of height class %d, continuing", HCHEIGHT);
+                break;
             }
 
             SYMWIDTH = SYMWIDTH + DW;