shithub: jbig2

Download patch

ref: aeb4fed3ddaa3bb6f659859ecdab5759c4e9e406
parent: 7c9bb193bcd464c3979a8d1e534b7b0950050935
author: Julian Smith <[email protected]>
date: Tue Nov 19 08:06:48 EST 2019

Coverity: add additional annotation to jbig2_get_uint32().

Coverity thinks that jbig2_get_uint32() taints the buffer that it is passed,
which causes coverity issues in calling code.

So this commit adds an addional coverity annotation to ensure the buffer is not
tainted.

Am not 100% sure how to specify multiple annotations, but apparently doing
things like '// coverity[ foo, bar ]' does not work, so we put the new
annotation in a separate comment.

--- a/jbig2.c
+++ b/jbig2.c
@@ -199,6 +199,7 @@
 }
 
 // coverity[ -tainted_data_return ]
+// coverity[ -tainted_data_argument : arg-0 ]
 uint32_t
 jbig2_get_uint32(const byte *bptr)
 {