shithub: jbig2

Download patch

ref: 91de28f18fccd91213fbb647f93e4a8f81b2bd36
parent: aeb4fed3ddaa3bb6f659859ecdab5759c4e9e406
author: Julian Smith <[email protected]>
date: Wed Nov 20 05:34:33 EST 2019

Coverity 350210: removed superflous extra param to jbig2_error().

--- a/jbig2_segment.c
+++ b/jbig2_segment.c
@@ -87,7 +87,7 @@
     referred_to_segment_size = result->number <= 256 ? 1 : result->number <= 65536 ? 2 : 4;     /* 7.2.5 */
     pa_size = result->flags & 0x40 ? 4 : 1;     /* 7.2.6 */
     if (offset + referred_to_segment_count * referred_to_segment_size + pa_size + 4 > buf_size) {
-        jbig2_error(ctx, JBIG2_SEVERITY_FATAL, result->number, "insufficient data to parse segment header", -1);
+        jbig2_error(ctx, JBIG2_SEVERITY_FATAL, result->number, "insufficient data to parse segment header");
         jbig2_free(ctx->allocator, result);
         return NULL;
     }