shithub: jbig2

Download patch

ref: 9305488893accbdbee96a2a3aedfe33fcaf93d6d
parent: b508c5fe8cf4f44cba30220b586a83b48d768347
author: Sebastian Rasmussen <sebras@gmail.com>
date: Mon Jul 2 23:10:55 EDT 2018

jbig2dec: Warn on too many symbols in text region, do not report fatal error.

This condition is already taken care of by not continuing to read symbols,
so attempt to proceed with parsing the image.

--- a/jbig2_text.c
+++ b/jbig2_text.c
@@ -291,7 +291,7 @@
                 first_symbol = FALSE;
             } else {
                 if (NINSTANCES > params->SBNUMINSTANCES) {
-                    code = jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "too many NINSTANCES (%d) decoded", NINSTANCES);
+                    jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, "too many NINSTANCES (%d) decoded", NINSTANCES);
                     break;
                 }
                 /* (3c.ii) / 6.4.8 */