Workaround Coverity CID 169392

This commit is contained in:
Even Rouault 2017-09-21 14:10:49 +02:00
parent 19e157871f
commit 7711307d86
1 changed files with 4 additions and 0 deletions

View File

@ -1999,6 +1999,10 @@ static OPJ_BOOL opj_t1_decode_cblk(opj_t1_t *t1,
}
} else if (cblk->numchunks == 1) {
cblkdata = cblk->chunks[0].data;
} else {
/* Not sure if that can happen in practice, but avoid Coverity to */
/* think we will dereference a null cblkdta pointer */
return OPJ_TRUE;
}
/* For subtile decoding, directly decode in the decoded_data buffer of */