summaryrefslogtreecommitdiff
path: root/tests/nonregression
AgeCommit message (Collapse)Author
2017-08-09Partial revert BPC related check of #975 (#979)Even Rouault
PR #975 introduced a check that rejects images that have different bit depth/sign per compoment in SIZ marker if the JP2 IHDR box has BPC != 255 This didn't work properly if decoding a .j2k file since the new bit added in opj_cp_t wasn't initialized to the right value. For clarity, tThis new bit has also been renamed to allow_different_bit_depth_sign But looking closer at the code, it seems we were already tolerant to inconsistencies. For example we parsed a JP2 BPCC box even if BPC != 255 (just a warning is emitted) So failing hard in opj_j2k_read_siz() wouldn't be very inconsistent, and that alone cannot protect against other issues, so just emit a warning if BPC != 255 and the SIZ marker contains different bit depth/sign per component. Note: we could also check that the content of JP2 BPCC box is consistant with the one of the SIZ marker.
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
2017-06-12Encoder: fix packet writing of empty sub-bands (#891, #892)Even Rouault
There are situations where, given a tile size, at a resolution level, there are sub-bands with x0==x1 or y0==y1, that consequently don't have any valid codeblocks, but the other sub-bands may be non-empty. Given that we recycle the memory from one tile to another one, those ghost codeblocks might be non-0 and thus candidate for packet inclusion.
2017-06-09T1: fix BYPASS/LAZY, TERMALL/RESTART and PTERM/ERTERM encoding modes. (#674)fix_bypass_pterm_termallEven Rouault
There were a number of defects regarding when and how the termination of passes had to done and the computation of their rate.
2017-05-23Tests: test opj_compress in VSC mode (related to #172)Even Rouault
2016-09-22Fix PNM file reading (#847)Matthieu Darbois
Malformed PNM file could cause a crash in opj_compress. Checks were added to prevent this. Fixes #843 Updates #440
2016-09-11Add test for issue 820 (#829)Matthieu Darbois
Update uclouvain/openjpeg#820
2016-09-08Add test for issue 826 (#827)Matthieu Darbois
Update uclouvain/openjpeg#826 Also correct names for data of issue uclouvain/openjpeg#823
2016-09-08Add sanity check for tile coordinates (#823)Matthieu Darbois
Coordinates are casted from OPJ_UINT32 to OPJ_INT32 Add sanity check for negative values and upper bound becoming lower than lower bound. See also https://pdfium.googlesource.com/pdfium/+/b6befb2ed2485a3805cddea86dc7574510178ea9
2016-09-07Add test for PR 818 (#822)Matthieu Darbois
update uclouvain/openjpeg#818
2016-05-08Correct expected result for test of issue 495mayeut
2016-05-08Fix Out-of-Bounds Access in function opj_tgt_resetmayeut
Fix uclouvain/openjpeg#775
2016-05-08Fix Heap Buffer Overflow in function color_cmyk_to_rgbmayeut
Fix uclouvain/openjpeg#774
2016-05-08Fix division by zeromayeut
Fix uclouvain/openjpeg#733
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-30Add tests for recent issuesmayeut
Update uclouvain/openjpeg#725 Update uclouvain/openjpeg#726
2016-04-30Update lcms (#544)Matthieu Darbois
Update to mm2/Little-CMS@0e8234e090d6aab33f90e2eb0296f30aa0705e57
2016-04-30Merge pull request #706 from mayeut/issue135Antonin Descampe
Fix issue 135 The fix is legal regarding the standard but I did not manage to find out if it covers a bug in opj_t2_read_packet_data or if the file is corrupted
2016-04-28Check SSIZ is valid in opj_j2k_read_siz (#762)Matthieu Darbois
2016-04-27Fix issue 135mayeut
dwt_interleave_h.gsr105.jp2 now has the same output as kakadu issue399 is corrupted. Only the corrupted part changes. Update known failures for x86 MD5 NR-DEC-kodak_2layers_lrcp.j2c-31-decode-md5 NR-DEC-kodak_2layers_lrcp.j2c-32-decode-md5 NR-DEC-issue135.j2k-68-decode-md5
2016-04-23Allow to write 3/5/7/9/11/13/15 bpp TIF filesmayeut
Update uclouvain/openjpeg#729
2016-04-23Allow to read 3/5/7/9/11/13/15 bpp TIF filesmayeut
2015-11-07Fix undefined size jp2 box handlingmayeut
Update #653
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-10Add test for uclouvain/openjpeg#571mayeut
2015-09-10Correct lossless issue on linux x86mayeut
Update uclouvain/openjpeg#571
2015-09-01Correct CMake version requirementsmayeut
Update uclouvain/openjpeg#488
2015-08-23Update testsmayeut
2015-08-21Add tests for CMYK/esYCC/CIELabmayeut
2015-07-31Add test for #388mayeut
2015-07-30Add jpylyzer tests for JP2 compressionmayeut
Unify syntax
2015-07-30Add jpylyzer tests for JP2 compressionmayeut
2015-07-26Update convert for PNG outputmayeut
Update uclouvain/openjpeg#264
2015-07-21Add test for odd looking cmap & for cmap outside jp2hmayeut
Update uclouvain/openjpeg#235
2015-07-19Update PNG supportmayeut
Only input modified for now Update uclouvain/openjpeg#536 Update uclouvain/openjpeg#264
2015-07-18Add tests for TIFF input with Alpha channelmayeut
Update uclouvain/openjpeg#322
2015-07-17Add tests for TIFF outputmayeut
Update uclouvain/openjpeg#322
2015-07-16Add tests for TIFF inputmayeut
Update uclouvain/openjpeg#322
2015-07-03uclouvain/openjpeg#254 Update MD5 sums for testsmayeut
2015-05-27[trunk] Fix overflow in opj_image_comp_header_update (fixes issue 495)Matthieu Darbois
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-22[trunk] fixed component precision upscaling in opj_decompress (fixes issue 458)Matthieu Darbois
2014-12-22[trunk] updated BMP format input supportMatthieu Darbois
Update issue 203
2014-12-22[trunk] updated BMP format input supportMatthieu Darbois
Update issue 203
2014-12-20[trunk] updated tests to get BMP RLE8 testedMatthieu Darbois
Update issue 203
2014-12-20[trunk] fixed BMP reading for 8bpp when width & 3 == 1Matthieu Darbois
Update issue 203
2014-12-20[trunk] updated testsMatthieu Darbois
Update issue 415
2014-12-20[trunk] fixed test issues (fixes issue 454)Matthieu Darbois
2014-12-19[trunk] Updated checks regarding number of decomposition levels when compressingMatthieu Darbois
Update issue 215