f3ee448815
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. |
||
---|---|---|
.. | ||
conformance | ||
fuzzers | ||
nonregression | ||
performance | ||
profiling | ||
unit | ||
CMakeLists.txt | ||
compare_dump_files.c | ||
compare_images.c | ||
compare_raw_files.c | ||
include_openjpeg.c | ||
j2k_random_tile_access.c | ||
pdf2jp2.c | ||
ppm2rgb3.c | ||
test_decode_area.c | ||
test_tile_decoder.c | ||
test_tile_encoder.c |