shithub: jbig2

Download patch

ref: a780e4ea129d10751af78cc95386cdd2d265d88d
parent: ad9a6d40d75c0eb60b6e82e19e8ed8b3e8333fd1
author: Sebastian Rasmussen <sebras@gmail.com>
date: Sat May 26 22:51:10 EDT 2018

jbig2dec: Unsupported intermediate generic region is now a fatal error.

--- a/jbig2_segment.c
+++ b/jbig2_segment.c
@@ -256,7 +256,7 @@
     case 23:                   /* immediate lossless halftone region */
         return jbig2_halftone_region(ctx, segment, segment_data);
     case 36:
-        return jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, "unhandled segment type 'intermediate generic region'");
+        return jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "unhandled segment type 'intermediate generic region'");
     case 38:                   /* immediate generic region */
     case 39:                   /* immediate lossless generic region */
         return jbig2_immediate_generic_region(ctx, segment, segment_data);