shithub: jbig2

Download patch

ref: 576c7d4162890ecee3b7322fd5665a8ae3c2d6d7
parent: 7feea483a0354e13c42ffa239b9b0c2d00f08428
author: Shailesh Mistry <shailesh.mistry@hotmail.co.uk>
date: Sat Jun 23 19:57:19 EDT 2012

Bug 693050 : Fix error handling in dcbd folder

--- a/jbig2_page.c
+++ b/jbig2_page.c
@@ -145,7 +145,7 @@
         page->image = jbig2_image_new(ctx, page->width, page->height);
     }
     if (page->image == NULL) {
-        return jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number,
+        return jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
             "failed to allocate buffer for page image");
     } else {
 	/* 8.2 (3) fill the page with the default pixel value */