Skip to content

Commit

Permalink
Merge pull request #1492 from headshog/fix-ht-dec
Browse files Browse the repository at this point in the history
fix ht_dec.c:1215
  • Loading branch information
rouault authored Dec 8, 2023
2 parents 2c8c502 + 478b20d commit 03afd06
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 03afd06

Please sign in to comment.