summaryrefslogtreecommitdiff
path: root/tests/nonregression/CMakeLists.txt
AgeCommit message (Collapse)Author
2024-02-28Fix some typos (found by `codespell` and `typos`)Stefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-01-08CMake: drop support for cmake < 3.5Dominik Wójt
Compatibility for cmake version < 3.5 is now deprecated in cmake and specifing version below 3.5 in cmake_minimum_required produces a warning.[1] [1] https://cmake.org/cmake/help/latest/release/3.27.html#deprecated-and-removed-features
2023-09-23fix: use `opj_uint_ceildiv` instead of `opj_int_ceildiv` when necessarymayeut
There are a bunch of loc where we can see a usage of `opj_int_ceildiv`: ``` (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)a, (OPJ_INT32)b); ``` where a & b are `OPJ_UINT32`. This can lead to overflow/underflow for some a/b combinations. Replace those calls by `opj_uint_ceildiv` instead to always get a correct result. This also allows some valid single tile images with huge tile size to be decoded properly. Fix #1438
2021-09-26Test decoding a .jhc file with vertically causal context variationEven Rouault
2021-09-26Test decoding a .jph test fileEven Rouault
2020-10-09Merge pull request #1253 from rouault/floating_point_irreversible_encodingEven Rouault
Single-threaded performance improvements in forward DWT for 5-3 and 9-7 (and other improvements)
2020-05-20Merge pull request #1211 from sebras/masterEven Rouault
Add check to validate SGcod/SPcoc/SPcod parameter values.
2020-05-20Testing: revise testing of lossy encoding by comparing PEAK and MSE with ↵Even Rouault
original image
2020-02-12Implement writing of IMF profilesEven Rouault
Add -IMF switch to opj_compress as well
2019-09-04openjp2/j2k: Validate all SGcod/SPcod/SPcoc parameter values.Sebastian Rasmussen
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.
2017-11-30opj_j2k_read_cod: remove check for 'No more than one COD marker per tile' ↵Even Rouault
(fixes #1043) This check was added per https://github.com/uclouvain/openjpeg/commit/daed8cc9195555e101ab708a501af2dfe6d5e001 to fix https://github.com/uclouvain/openjpeg/issues/476 , but it does not seem to be necessary with latest master (issue476.jp2 doesn't cause memory issues), and breaks reading legit files.
2017-07-27Avoids undefined shift behaviour in m_dc_level_shift computationEven Rouault
Fixes warning found on clusterfuzz-testcase-minimized-5146316340461568 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2495 Credit to OSS Fuzz
2016-09-11Add test for issue 820 (#829)Matthieu Darbois
Update uclouvain/openjpeg#820
2016-05-08Correct expected result for test of issue 495mayeut
2016-05-02Use lowercase for cmake commands consistenlyJulien Malik
Inspired from https://github.com/InsightSoftwareConsortium/ITK/blob/master/Utilities/Maintenance/HowToCreateTheCMakeCaseConversion.txt This needs vim 7.3 and fails with vim 7.4 This also fixes a number of : - missing empty line at end of files - useless space at end of lines
2016-04-28Check SSIZ is valid in opj_j2k_read_siz (#762)Matthieu Darbois
2015-09-29Fix typos in comments and stringStefan Weil
Most typos were found by codespell. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-09-10Correct lossless issue on linux x86mayeut
Update uclouvain/openjpeg#571
2015-09-01Correct CMake version requirementsmayeut
Update uclouvain/openjpeg#488
2015-07-30Add jpylyzer tests for JP2 compressionmayeut
Unify syntax
2015-07-30Add jpylyzer tests for JP2 compressionmayeut
2015-05-19[trunk] Add check for number of layers & cblkw/cblkh values (fixes issue 475)Matthieu Darbois
2015-05-19[trunk] Add check for at most 1 COD marker per tile. 1 COD marker for MH ↵Matthieu Darbois
(fixes issue 476)
2014-12-20[trunk] updated testsMatthieu Darbois
Update issue 415
2014-12-18[trunk] Fixed a crash on illegal tile offset when decoding Matthieu Darbois
Update issue 427
2014-12-18[trunk] Fixed a crash on 0xh or wx0 image size decoding Matthieu Darbois
Update issue 427
2014-11-20[trunk] added check for pclr box validity (fixes issue 429)Matthieu Darbois
2014-11-17[data] added new non-regression tests from foxitMatthieu Darbois
Update issue 415 Issue not closed as in the mean time there are other images to include
2014-10-22[trunk] Added new non-regression tests from foxit issuesAntonin Descampe
Update issue 415
2014-10-22[trunk] add a check on mandatory headers in Main Header (fixes issue 408)Antonin Descampe
2014-03-25[trunk] Add sentinel in case list empty. Mathieu Malaterre
I was getting a cmake error `list sub-command REMOVE_ITEM requires list to be present`
2014-03-18[trunk] Now that dataset from issue 297 have been imported, run test suite.Mathieu Malaterre
None of the dataset triggered any buffer overflow. Recent changes in trunk handle all those cases. Update issue 297
2014-03-14[trunk] add mecanism to track of addition of new regression files in ↵Mathieu Malaterre
svn/data. It will report when a J2K files is added but no test is found in the test_suite file
2014-03-14[trunk] Now that issue 165 dataset is in non regression repository, activate ↵Mathieu Malaterre
code to reject them Fixes issue 165
2014-03-13[trunk] Add documentation to the checkmd5refs cmake module (used for ↵Mathieu Malaterre
regression testing)
2014-03-07[trunk] Cleanup commit. Rename compare family since comparePGX now support TIFF.Mathieu Malaterre
Rename compareRAWimage for clarity since it merely compare files (not images).
2014-03-06[trunk] Make sure that all output files from the test suite are using a ↵Mathieu Malaterre
different output name Fixes issue 271
2014-03-03[trunk] Remove 3635.pdf.asan.77.2930.jp2 from opj_dump testsMathieu Malaterre
Update issue 250
2014-02-28[trunk] Make sure to run *-decode-md5 only after *-decode tests. Update md5 ↵Mathieu Malaterre
since recent code change.
2014-02-28[trunk] Mark a file as being invalid for opj_dumpMathieu Malaterre
2014-02-26[trunk] Update file extension function to handle cases where filename ↵Mathieu Malaterre
containes multiples dots. Update issue 250
2014-02-26[trunk] Clearly indicate that mem-b2ace68c-1381.jp2 should not be decompressed.Mathieu Malaterre
Update issue 250
2014-02-24[trunk] improve test suite by checking against a reference md5Mathieu Malaterre
2014-02-24[trunk] Prefer the new style cmake: add_test commandMathieu Malaterre
Fixes issues 258
2014-01-22[trunk] uncomment tests mistakenly commented in previous commitAntonin Descampe
2014-01-22[trunk] fixed several bugs in cinema mode (2K 24/48 fps, and 4K). TrunkAntonin Descampe
now produces compliant DCI code-streams.
2012-11-27[test] update the list of files which will be gracefully rejected when they ↵Mickael Savinaud
are dump
2012-11-12[trunk] add some new tests related to new data; indicate that some tests ↵Mickael Savinaud
should failed because data are wrong
2012-09-30[trunk] update the name of the executable used for the testsMickael Savinaud
2012-08-30[trunk] Remove CMake-language block-end command argumentsMickael Savinaud
Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Thanks to Hans Johnson