summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthieu Darbois <mayeut@users.noreply.github.com>2016-09-22 00:30:34 +0200
committerGitHub <noreply@github.com>2016-09-22 00:30:34 +0200
commitfac916f72a162483a4d6d804fd070fdf32f402ed (patch)
tree48edcfaecbacf278cb360ca8a896ab3a0ee38a35 /tests
parent8715ce2749d1e5a1e9c77646e9a2ddf0ec82bac9 (diff)
Fix PNM file reading (#847)
Malformed PNM file could cause a crash in opj_compress. Checks were added to prevent this. Fixes #843 Updates #440
Diffstat (limited to 'tests')
-rw-r--r--tests/nonregression/test_suite.ctest.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/nonregression/test_suite.ctest.in b/tests/nonregression/test_suite.ctest.in
index bd22c91f..9ffae145 100644
--- a/tests/nonregression/test_suite.ctest.in
+++ b/tests/nonregression/test_suite.ctest.in
@@ -146,6 +146,8 @@ opj_compress -i @INPUT_NR_PATH@/flower-minisblack-11.tif -o @TEMP_PATH@/flower-m
opj_compress -i @INPUT_NR_PATH@/flower-minisblack-13.tif -o @TEMP_PATH@/flower-minisblack-13.tif.jp2
opj_compress -i @INPUT_NR_PATH@/flower-minisblack-15.tif -o @TEMP_PATH@/flower-minisblack-15.tif.jp2
+# issue 843 Crash with invalid ppm file
+!opj_compress -i @INPUT_NR_PATH@/issue843.ppm -o @TEMP_PATH@/issue843.ppm.jp2
# DECODER TEST SUITE
opj_decompress -i @INPUT_NR_PATH@/Bretagne2.j2k -o @TEMP_PATH@/Bretagne2.j2k.pgx