Blame SOURCES/jasper-1.900.1-Coverity-BAD_SIZEOF.patch

2c4e85
Error: BAD_SIZEOF
2c4e85
jpc/jpc_enc.c:2105: bad_sizeof: Taking the size of binary expression "tcmpt->numstepsizes * sizeof (uint_fast16_t) /*8*/" is suspicious.
2c4e85
                                Did you intend "sizeof(tcmpt->numstepsizes) * sizeof (uint_fast16_t) /*8*/"?
2c4e85
2c4e85
diff -up jasper-1.900.1/src/libjasper/jpc/jpc_enc.c.bad_sizeof jasper-1.900.1/src/libjasper/jpc/jpc_enc.c
2c4e85
--- jasper-1.900.1/src/libjasper/jpc/jpc_enc.c.bad_sizeof	2007-01-19 22:43:07.000000000 +0100
2c4e85
+++ jasper-1.900.1/src/libjasper/jpc/jpc_enc.c	2011-06-23 17:28:17.085690561 +0200
2c4e85
@@ -2102,8 +2102,7 @@ static jpc_enc_tcmpt_t *tcmpt_create(jpc
2c4e85
 
2c4e85
 	tcmpt->numstepsizes = tcmpt->numbands;
2c4e85
 	assert(tcmpt->numstepsizes <= JPC_MAXBANDS);
2c4e85
-	memset(tcmpt->stepsizes, 0, sizeof(tcmpt->numstepsizes *
2c4e85
-	  sizeof(uint_fast16_t)));
2c4e85
+	memset(tcmpt->stepsizes, 0, tcmpt->numstepsizes * sizeof(uint_fast16_t));
2c4e85
 
2c4e85
 	/* Retrieve information about the various bands. */
2c4e85
 	jpc_tsfb_getbands(tcmpt->tsfb, jas_seq2d_xstart(tcmpt->data),