openjpeg/tests
Sebastian Rasmussen f3ee448815 openjp2/j2k: Validate all SGcod/SPcod/SPcoc parameter values.
Previously the multiple component transformation SGcod(C)
and wavelet transformation SPcod(H)/SPcoc(E) parameter
values were never checked, allowing for out of range values.

The lack of validation allowed the bit stream provided in
issue #1158 through. After this commit an error message
points to the marker segments' parameters as being out of
range.

input/nonregression/edf_c2_20.jp2 contains an SPcod(H) value
of 17, but according to Table A-20 of the specification only
values 0 and 1 are valid. input/nonregression/issue826.jp2
contains a SGcod(B) value of 2, but according to Table A-17
of the specification only values 0 and 1 are valid.
input/nonregression/oss-fuzz2785.jp2 contains a SGcod(B)
value of 32, but it is likewise limited to 0 or 1. These test
cases have been updated to consistently fail to parse the
headers since they contain out of bounds values.

This fixes issue #1210.
2019-09-04 05:14:41 +02:00
..
conformance Spelling fixes (patch by ka7, #890, rebased on top of master) 2017-07-26 21:06:38 +02:00
fuzzers opj_decompress_fuzzer: remove checks regarding input dimensions (fixes #1079) 2019-06-15 09:55:16 +02:00
nonregression openjp2/j2k: Validate all SGcod/SPcod/SPcoc parameter values. 2019-09-04 05:14:41 +02:00
performance perf_test.py: implement -i option 2017-05-11 20:18:42 +02:00
profiling Add profiling of CPU and memory usage (#912) 2017-05-09 12:35:51 +02:00
unit Use lowercase for cmake commands consistenly 2016-05-02 16:05:41 +02:00
CMakeLists.txt Allow several repeated calls to opj_set_decode_area() and opj_decode() for single-tiled images 2017-09-01 16:30:48 +02:00
compare_dump_files.c Add sanity check for tile coordinates (#823) 2016-09-08 00:24:15 +02:00
compare_images.c Update lcms (#544) 2016-04-30 17:58:04 +02:00
compare_raw_files.c [trunk] fixed return value for compare_raw_files (fixes issue 453) 2014-12-20 12:42:40 +00:00
include_openjpeg.c Add compilation test for standalone inclusion of openjpeg.h (#798) 2016-07-14 11:06:26 +02:00
j2k_random_tile_access.c [trunk]Replaced deprecated opj_stream_set_user_data function from API 2014-04-23 07:46:11 +00:00
pdf2jp2.c trunk: extend support for pdf2jp2 2014-09-19 15:48:48 +00:00
ppm2rgb3.c [trunk] Add documentation 2014-03-25 10:22:40 +00:00
test_decode_area.c test_decode_area.c: assign tdy to *ptileh instead of *ptilew (fixes #1195) 2019-05-26 11:06:30 +02:00
test_tile_decoder.c Fix some issues reported by Coverity Scan (#846) 2016-09-21 21:15:25 +02:00
test_tile_encoder.c test_tile_encoder: fix checks on argc 2017-08-21 23:06:53 +02:00