ref: 80576e0a275d83a6bcd344265bdeeb85efb08176
parent: 15cde40a951c60442f70098662fec277a4c152f9
author: Julian Smith <jules@op59.net>
date: Thu Nov 21 11:52:32 EST 2019
Coverity 350185: fix printf format type mismatch. Unfortunately stdint_.h isn't available to jbig2dec code so we can't use PRIdSIZE. Have instead used %li with a cast to long.
--- a/jbig2_generic.c
+++ b/jbig2_generic.c
@@ -1075,7 +1075,7 @@
if (image->stride * image->height > (1 << 26) && segment->data_length < image->stride * image->height / (1 << 16)) {
return jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
- "region is far larger than data provided (%d << %d), aborting to prevent DOS", segment->data_length, image->stride * image->height);
+ "region is far larger than data provided (%li << %d), aborting to prevent DOS", (long) segment->data_length, image->stride * image->height);
}
if (!params->MMR && params->TPGDON)