From 90964e633488e2d8e9fa450ebe04ace16ec0d396 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 3 Jul 2018 03:10:55 +0800 Subject: 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. --- jbig2dec/jbig2_text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jbig2dec/jbig2_text.c') diff --git a/jbig2dec/jbig2_text.c b/jbig2dec/jbig2_text.c index 1953b995d..ee38d840c 100644 --- a/jbig2dec/jbig2_text.c +++ b/jbig2dec/jbig2_text.c @@ -291,7 +291,7 @@ cleanup1: 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 */ -- cgit v1.2.1