projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0e83a1
)
opj_tcd_dc_level_shift_decode(): avoid increment nullptr (fixes #1480)
1496/head
author
Even Rouault
<even.rouault@spatialys.com>
Fri, 8 Dec 2023 15:05:12 +0000
(16:05 +0100)
committer
Even Rouault
<even.rouault@spatialys.com>
Fri, 8 Dec 2023 15:05:52 +0000
(16:05 +0100)
(likely harmless issue as we don't dereference it)
src/lib/openjp2/tcd.c
patch
|
blob
|
history
diff --git
a/src/lib/openjp2/tcd.c
b/src/lib/openjp2/tcd.c
index 438247b60217a95f0e378bddcd9a661a3f7b79a0..b2375146de049537992eec62f67b732c1cc31084 100644
(file)
--- a/
src/lib/openjp2/tcd.c
+++ b/
src/lib/openjp2/tcd.c
@@
-2315,6
+2315,9
@@
static OPJ_BOOL opj_tcd_dc_level_shift_decode(opj_tcd_t *p_tcd)
l_max = (OPJ_INT32)((1U << l_img_comp->prec) - 1);
}
+ if (l_width == 0 || l_height == 0) {
+ continue;
+ }
if (l_tccp->qmfbid == 1) {
for (j = 0; j < l_height; ++j) {