diff --git a/THANKS.md b/THANKS.md index dac61019..8e93d590 100644 --- a/THANKS.md +++ b/THANKS.md @@ -4,34 +4,35 @@ Many people have contributed to OpenJPEG by reporting problems, suggesting vario or submitting actual code. Here is a list of these people. Help me keep it complete and exempt of errors. -Giuseppe Baruffa -Ben Boeckel -Aaron Boxer -David Burken -Matthieu Darbois -Rex Dieter -Herve Drolon -Antonin Descampe -Francois-Olivier Devaux -Parvatha Elangovan -Jerôme Fimes -Bob Friesenhahn -Kaori Hagihara -Luc Hermitte -Luis Ibanez -David Janssens -Hans Johnson -Callum Lerwick -Sebastien Lugan -Benoit Macq -Mathieu Malaterre -Julien Malik -Arnaud Maye -Vincent Nicolas -Glenn Pearson -Even Rouault -Dzonatas Sol -Winfried Szukalski -Vincent Torri -Yannick Verschueren -Peter Wimmer +* Giuseppe Baruffa +* Ben Boeckel +* Aaron Boxer +* David Burken +* Matthieu Darbois +* Rex Dieter +* Herve Drolon +* Antonin Descampe +* Francois-Olivier Devaux +* Parvatha Elangovan +* Jerôme Fimes +* Bob Friesenhahn +* Kaori Hagihara +* Luc Hermitte +* Luis Ibanez +* David Janssens +* Hans Johnson +* Callum Lerwick +* Ke Liu (Tencent's Xuanwu LAB) +* Sebastien Lugan +* Benoit Macq +* Mathieu Malaterre +* Julien Malik +* Arnaud Maye +* Vincent Nicolas +* Glenn Pearson +* Even Rouault +* Dzonatas Sol +* Winfried Szukalski +* Vincent Torri +* Yannick Verschueren +* Peter Wimmer diff --git a/src/lib/openjp2/pi.c b/src/lib/openjp2/pi.c index 70e6ed16..8203f861 100644 --- a/src/lib/openjp2/pi.c +++ b/src/lib/openjp2/pi.c @@ -1241,7 +1241,7 @@ opj_pi_iterator_t *opj_pi_create_decode(opj_image_t *p_image, l_current_pi->include = 00; if (l_step_l <= (((OPJ_UINT32)-1) / (l_tcp->numlayers + 1U))) { - l_current_pi->include = (OPJ_INT16*) opj_calloc((l_tcp->numlayers +1) * l_step_l, sizeof(OPJ_INT16)); + l_current_pi->include = (OPJ_INT16*) opj_calloc((size_t)(l_tcp->numlayers + 1U) * l_step_l, sizeof(OPJ_INT16)); } if diff --git a/src/lib/openjp2/t1_generate_luts.c b/src/lib/openjp2/t1_generate_luts.c index cba7245d..f9aaa39c 100644 --- a/src/lib/openjp2/t1_generate_luts.c +++ b/src/lib/openjp2/t1_generate_luts.c @@ -52,6 +52,7 @@ static int t1_init_ctxno_zc(int f, int orient) { t = h; h = v; v = t; + /* fall through */ case 0: case 1: if (!h) { diff --git a/tests/nonregression/CMakeLists.txt b/tests/nonregression/CMakeLists.txt index 53cdc9f4..187c1cb0 100644 --- a/tests/nonregression/CMakeLists.txt +++ b/tests/nonregression/CMakeLists.txt @@ -51,6 +51,7 @@ set(BLACKLIST_JPEG2000_TMP issue427-null-image-size.jp2 issue427-illegal-tile-offset.jp2 issue495.jp2 + issue820.jp2 ) # Define a list of file which should be gracefully rejected: diff --git a/tests/nonregression/test_suite.ctest.in b/tests/nonregression/test_suite.ctest.in index 2dfabfbc..bd22c91f 100644 --- a/tests/nonregression/test_suite.ctest.in +++ b/tests/nonregression/test_suite.ctest.in @@ -566,6 +566,9 @@ opj_decompress -i @INPUT_NR_PATH@/issue726.j2k -o @TEMP_PATH@/issue726.png !opj_decompress -i @INPUT_NR_PATH@/issue775-2.j2k -o @TEMP_PATH@/issue775-2.png # issue 818 opj_decompress -i @INPUT_NR_PATH@/issue818.jp2 -o @TEMP_PATH@/issue818.png -# issue 823 (yes, not a typo, test image is issue822) -!opj_decompress -i @INPUT_NR_PATH@/issue822.jp2 -o @TEMP_PATH@/issue822.png - +# issue 823 +!opj_decompress -i @INPUT_NR_PATH@/issue823.jp2 -o @TEMP_PATH@/issue823.png +# issue 826 +!opj_decompress -i @INPUT_NR_PATH@/issue826.jp2 -o @TEMP_PATH@/issue826.png +# issue 820 +!opj_decompress -i @INPUT_NR_PATH@/issue820.jp2 -o @TEMP_PATH@/issue820.png