shithub: jbig2

Download patch

ref: 787ec89da97329210578b4760c674d2bd7766ee2
parent: c811c5a80b7361e7badfd01d57356272dece0f95
author: Julian Smith <jules@op59.net>
date: Tue Nov 12 10:48:50 EST 2019

Attempt to quieten coverity complaints about tainted data from jbig2_get_int32() and jbig2_get_uint32().

E.g. see Coverity p11408:94824.

--- a/jbig2.c
+++ b/jbig2.c
@@ -191,6 +191,7 @@
     return get_uint16(bptr);
 }
 
+/* coverity[ -tainted_data_return ] */
 int32_t
 jbig2_get_int32(const byte *bptr)
 {
@@ -197,6 +198,7 @@
     return ((int32_t) get_int16(bptr) << 16) | get_uint16(bptr + 2);
 }
 
+/* coverity[ -tainted_data_return ] */
 uint32_t
 jbig2_get_uint32(const byte *bptr)
 {