shithub: jbig2

Download patch

ref: b508c5fe8cf4f44cba30220b586a83b48d768347
parent: 3e832349644ca131104aaa78b2f8c25d6583edc0
author: Sebastian Rasmussen <sebras@gmail.com>
date: Mon Jul 2 08:44:31 EDT 2018

jbig2dec: Treat unstriped pages with unknown height as striped with max stripe height.

--- a/jbig2_page.c
+++ b/jbig2_page.c
@@ -126,8 +126,9 @@
         }
     }
     if (page->height == 0xFFFFFFFF && page->striped == FALSE) {
-        jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, "height is unspecified but page is not marked as striped");
+        jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, "height is unspecified but page is not marked as striped, assuming striped with maximum strip size");
         page->striped = TRUE;
+        page->stripe_size = 0x7FFF;
     }
     page->end_row = 0;