summaryrefslogtreecommitdiff
path: root/jbig2dec/jbig2_text.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-07-03 03:10:55 +0800
committerSebastian Rasmussen <sebras@gmail.com>2018-07-31 17:35:42 +0800
commit90964e633488e2d8e9fa450ebe04ace16ec0d396 (patch)
treebddba822214f6c2e7e18a2b5aca95fd169101e3c /jbig2dec/jbig2_text.c
parent0073f2a6524c731528e950deb7eac598c819a3da (diff)
downloadghostpdl-90964e633488e2d8e9fa450ebe04ace16ec0d396.tar.gz
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.
Diffstat (limited to 'jbig2dec/jbig2_text.c')
-rw-r--r--jbig2dec/jbig2_text.c2
1 files changed, 1 insertions, 1 deletions
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 */