shithub: jbig2

Download patch

ref: ad9a6d40d75c0eb60b6e82e19e8ed8b3e8333fd1
parent: 912c14dd09d94a6bade4677c485b525a7679fb04
author: Sebastian Rasmussen <sebras@gmail.com>
date: Sat May 26 22:50:32 EDT 2018

jbig2dec: Halftone regions with skip enabled is now a fatal error.

--- a/jbig2_halftone.c
+++ b/jbig2_halftone.c
@@ -466,7 +466,7 @@
 
     /* 6.6.5 point 2. compute HSKIP */
     if (params->HENABLESKIP == 1) {
-        jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, "unhandled option HENABLESKIP");
+        return jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "unhandled option HENABLESKIP");
     }
 
     /* 6.6.5 point 3. set HBPP to ceil(log2(HNUMPATS)):