Skip to content

Commit

Permalink
fix ht_dec.c:1215
Browse files Browse the repository at this point in the history
  • Loading branch information
headshog authored and rouault committed Dec 8, 2023
1 parent b0e83a1 commit f5625fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/openjp2/ht_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,9 @@ OPJ_BOOL opj_t1_ht_decode_cblk(opj_t1_t *t1,

/* Concatenate all chunks */
cblkdata = t1->cblkdatabuffer;
if (cblkdata == NULL) {
return OPJ_FALSE;
}
cblk_len = 0;
for (i = 0; i < cblk->numchunks; i++) {
memcpy(cblkdata + cblk_len, cblk->chunks[i].data, cblk->chunks[i].len);
Expand Down

0 comments on commit f5625fd

Please sign in to comment.