shithub: jbig2

Download patch

ref: 496f3a0cfc69e1b93422993b10968173efe156a7
parent: 1e7548319ce2b839caf138099759d39323122d25
author: Sebastian Rasmussen <[email protected]>
date: Sun Apr 8 16:32:59 EDT 2018

jbig2dec: Make error messages distinguishable.

--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -656,7 +656,7 @@
 
                 /* SumatraPDF: prevent read access violation */
                 if ((size - jbig2_huffman_offset(hs) < image->height * stride) || (size < jbig2_huffman_offset(hs))) {
-                    jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "not enough data for decoding (%d/%d)", image->height * stride,
+                    jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "not enough data for decoding uncompressed (%d/%d)", image->height * stride,
                                 size - jbig2_huffman_offset(hs));
                     jbig2_image_release(ctx, image);
                     goto cleanup4;