summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/tcd.h
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2024-06-24 21:11:21 +0200
committerEven Rouault <even.rouault@spatialys.com>2024-06-24 21:15:49 +0200
commitf3b28c5ee417df9f23ca590b0e949d8a309408a0 (patch)
tree3f6481142e52181509ee80ce56bbc70efbbeadba /src/lib/openjp2/tcd.h
parentdea92eea8b6ab55f7eb542ea229b2c2124aa2124 (diff)
Avoid heap-buffer-overflow read on corrupted image in non-strict mode
Fixes #1535
Diffstat (limited to 'src/lib/openjp2/tcd.h')
-rw-r--r--src/lib/openjp2/tcd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/openjp2/tcd.h b/src/lib/openjp2/tcd.h
index cf4e0082..3371b08c 100644
--- a/src/lib/openjp2/tcd.h
+++ b/src/lib/openjp2/tcd.h
@@ -141,6 +141,7 @@ typedef struct opj_tcd_cblk_dec {
OPJ_UINT32 numchunksalloc; /* Number of chunks item allocated */
/* Decoded code-block. Only used for subtile decoding. Otherwise tilec->data is directly updated */
OPJ_INT32* decoded_data;
+ OPJ_BOOL corrupted; /* whether the code block data is corrupted */
} opj_tcd_cblk_dec_t;
/** Precinct structure */