diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-09-21 14:10:49 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-09-21 14:10:49 +0200 |
| commit | 7711307d865d46ca1bb8bb152071178b10066d05 (patch) | |
| tree | 1f684f6d9d3390071f0fed3f5df5c4f57f0de5e6 /src/lib | |
| parent | 19e157871ff28bb5e8296f9e9f9aee6a17a37ace (diff) | |
Workaround Coverity CID 169392
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/openjp2/t1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/openjp2/t1.c b/src/lib/openjp2/t1.c index 9609895d..76744380 100644 --- a/src/lib/openjp2/t1.c +++ b/src/lib/openjp2/t1.c @@ -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 */ |
