From 50acc339c58b4ae385b6722a711740f81984e83f Mon Sep 17 00:00:00 2001 From: Matthieu Darbois Date: Mon, 17 Nov 2014 22:02:38 +0000 Subject: [PATCH] [data] added new non-regression tests from foxit Update issue 415 Issue not closed as in the mean time there are other images to include --- tests/nonregression/CMakeLists.txt | 5 +++++ tests/nonregression/md5refs.txt | 12 ++++++++++++ tests/nonregression/test_suite.ctest.in | 25 +++++++++++++++++++++++++ 3 files changed, 42 insertions(+) diff --git a/tests/nonregression/CMakeLists.txt b/tests/nonregression/CMakeLists.txt index 3b8f4345..9ac6a181 100644 --- a/tests/nonregression/CMakeLists.txt +++ b/tests/nonregression/CMakeLists.txt @@ -62,6 +62,11 @@ set(BLACKLIST_JPEG2000 issue362-2866.jp2 issue362-2894.jp2 issue400.jp2 #kdu_jp2info ok + issue364-38.jp2 + issue364-903.jp2 #kdu_jp2info ok + issue393.jp2 #kdu_jp2info ok + issue408.jp2 #kdu_jp2info ok + issue420.jp2 #kdu_jp2info ok ) file(GLOB_RECURSE OPJ_DATA_NR_LIST diff --git a/tests/nonregression/md5refs.txt b/tests/nonregression/md5refs.txt index f52bed61..14a6b9c9 100644 --- a/tests/nonregression/md5refs.txt +++ b/tests/nonregression/md5refs.txt @@ -151,3 +151,15 @@ cdb1d69eb48ffd8545751326b86d9d7e test_lossless.j2k_0.pgx a37e7e5811d7c0c7adb61582790ccd33 text_GBR.jp2_0.pgx fc2173be54954a146b4e2887ee14be06 text_GBR.jp2_1.pgx 14108b4fb8d9126750db0424417ed17d text_GBR.jp2_2.pgx +a73bec4d6d82c8a64203e8fdf893b86d issue412.jp2_0.pgx +a73bec4d6d82c8a64203e8fdf893b86d issue428.jp2_0.pgx +2354cf24a1cc5e4a3b72896b333ba361 issue412.jp2_1.pgx +2354cf24a1cc5e4a3b72896b333ba361 issue428.jp2_1.pgx +77d707ff949371e561e13a8d720108b5 issue412.jp2_2.pgx +77d707ff949371e561e13a8d720108b5 issue428.jp2_2.pgx +2fc600f30ec0bc013befb1874e7adaeb issue414.jp2_0.pgx +354f9bb4668717d5c814cda354ec2b43 issue414.jp2_1.pgx +8b96a253937c4c7dd6b41b4aa11367d9 issue414.jp2_2.pgx +ec6886229ffaeaddfe22ce02b7a75e15 issue414.jp2_3.pgx +6aa5c69c83d6f4d5d65968f34f9bc2a3 issue414.jp2_4.pgx +00f34217ad2f88f4d4e1c5cd0d2c4329 issue399.j2k_0.pgx diff --git a/tests/nonregression/test_suite.ctest.in b/tests/nonregression/test_suite.ctest.in index 85e6f0a5..1e660520 100644 --- a/tests/nonregression/test_suite.ctest.in +++ b/tests/nonregression/test_suite.ctest.in @@ -194,6 +194,31 @@ opj_decompress -i @INPUT_NR_PATH@/issue226.j2k -o @TEMP_PATH@/ !opj_decompress -i @INPUT_NR_PATH@/issue400.jp2 -o @TEMP_PATH@/issue400.jp2.pgx # issue 413 (from pdfium fuzz engine) Unknown progression order in COD marker !opj_decompress -i @INPUT_NR_PATH@/issue413.jp2 -o @TEMP_PATH@/issue413.jp2.pgx +# issue 364 (from pdfium fuzz engine) +# Inconsistent box length for jp2 box +!opj_decompress -i @INPUT_NR_PATH@/issue364-38.jp2 -o @TEMP_PATH@/issue364-38.jp2.pgx +# No ihdr box +!opj_decompress -i @INPUT_NR_PATH@/issue364-903.jp2 -o @TEMP_PATH@/issue364-903.jp2.pgx +# issue 393 (from pdfium fuzz engine) Zppm found twice +!opj_decompress -i @INPUT_NR_PATH@/issue393.jp2 -o @TEMP_PATH@/issue393.jp2.pgx +# issue 395 (from pdfium fuzz engine) Stream too short +!opj_decompress -i @INPUT_NR_PATH@/issue395.jp2 -o @TEMP_PATH@/issue395.jp2.pgx +# issue 397 (from pdfium fuzz engine) Incomplete channel definitions. +!opj_decompress -i @INPUT_NR_PATH@/issue397.jp2 -o @TEMP_PATH@/issue397.jp2.pgx +# issue 399 (from pdfium fuzz engine) Incomplete channel definitions. +opj_decompress -i @INPUT_NR_PATH@/issue399.j2k -o @TEMP_PATH@/issue399.j2k.pgx +# issue 408 (from pdfium fuzz engine) No COD marker in main j2k header. +!opj_decompress -i @INPUT_NR_PATH@/issue408.jp2 -o @TEMP_PATH@/issue408.jp2.pgx +# issue 412 Palette image with cdef fails to decompress. +opj_decompress -i @INPUT_NR_PATH@/issue412.jp2 -o @TEMP_PATH@/issue412.jp2.pgx +# issue 428 Palette image with cdef fails to decompress properly. +opj_decompress -i @INPUT_NR_PATH@/issue412.jp2 -o @TEMP_PATH@/issue428.jp2.pgx -t 0 +# issue 414 Image with per channel alpha (cdef) does not decode properly. +opj_decompress -i @INPUT_NR_PATH@/issue414.jp2 -o @TEMP_PATH@/issue414.jp2.pgx +# issue 418 (from pdfium fuzz engine) Tile part length size inconsistent with stream length. +!opj_decompress -i @INPUT_NR_PATH@/issue418.jp2 -o @TEMP_PATH@/issue418.jp2.pgx +# issue 420 (from pdfium fuzz engine) Illegal custom precinct exponent. +!opj_decompress -i @INPUT_NR_PATH@/issue420.jp2 -o @TEMP_PATH@/issue420.jp2.pgx # decode with specific area # prec=12; nb_c=1