summaryrefslogtreecommitdiff
path: root/src/bin/common/color.c
AgeCommit message (Collapse)Author
2024-02-18opj_decompress: fix off-by-one read heap-buffer-overflow in sycc420_to_rgb() ↵Even Rouault
when x0 and y0 are odd (CVE-2021-3575, fixes #1347)
2020-04-17color_apply_icc_profile: add checks on the number of components (#1236)szukw000
2018-11-27color_apply_icc_profile: avoid potential heap buffer overflowEven Rouault
Derived from a patch by Thuan Pham
2017-08-08Merge pull request #975 from szukw000/changes-for-afl-testsAntonin Descampe
Catch images broken by AFL
2017-08-07Complementary fix to previous commitEven Rouault
2017-08-07Add opj_image_data_alloc() / opj_image_data_free()Even Rouault
As bin/common/color.c used to directly call malloc()/free(), we need to export functions dedicated to allocating/freeing image component data.
2017-07-31Catch images broken by AFLszukw000
2017-07-29color_cielab_to_rgb(): reject images with components of different dimensions ↵Even Rouault
to void read heap buffer overflow (#909)
2017-05-09Reformat whole codebase with astyle.options (#128)Even Rouault
2016-05-08Fix Heap Buffer Overflow in function color_cmyk_to_rgbmayeut
Fix uclouvain/openjpeg#774
2016-04-30Fix warnings (#763)Matthieu Darbois
2016-04-30Fix Out-Of-Bounds Read in sycc42x_to_rgb function (#745)Matthieu Darbois
42x Images with an odd x0/y0 lead to subsampled component starting at the 2nd column/line. That is offset = comp->dx * comp->x0 - image->x0 = 1 Fix #726
2016-04-29Fix heap-buffer-overflow in color_esycc_to_rgb (#748)Matthieu Darbois
When all components do not have the same dx/dy, components buffer are read beyond their end. Do not convert in this case. Update uclouvain/openjpeg#725
2016-04-29cppcheck fix for openjp2 (#740)julienmalik
2015-10-12Minor style fix to remove c++ commentsMathieu Malaterre
2015-09-13Fix function namemayeut
2015-09-13Correct leak in color_cielab_to_rgbmayeut
2015-09-09Remove C++ commentmayeut
2015-08-23Fix some UBSan warningsmayeut
2015-08-21Add tests for CMYK/esYCC/CIELabmayeut
2015-08-21Fix formattingmayeut
2015-07-30Defines three new functionsszukw000
Declares three new functions Calls the three new functions Collects data for CIELab, sets the color_space for EYCC and CMYK
2014-11-18[trunk] fixed a bug leading to jpwl build failure & add related odd ↵Matthieu Darbois
width/height sYCC tests (fixes issue 422)
2014-10-21[trunk] fixed invalid member values from opj_read_header or opj_decode ↵Antonin Descampe
(fixes issue 411)
2014-04-03[trunk] updated copyright and added copyright notice required by ISO, in ↵Antonin Descampe
each file; updated AUTHORS, NEWS
2014-03-12[trunk] Make sure to use 8bits buffer when applying the ICC profile.Mathieu Malaterre
Fixes issue 281
2014-03-12[trunk] Add debug info to be able to test integration with littlecmsMathieu Malaterre
2014-03-11[trunk] Fix compilation errors when JPWL and/or MJ2 are buildMathieu Malaterre
2014-03-10[trunk] Remove warning about sign conversion in color.cMathieu Malaterre
Update issue 256
2014-03-10[trunk] Remove 2 warnings about set but not used variablesMathieu Malaterre
2014-03-03[trunk] Remove easy to fix warnings about conversionMathieu Malaterre
2013-03-17[trunk] use everywhere the new opj_ prefix for HAVE variables and use the ↵Mickael Savinaud
opj_apps_config file (thanks to winfried)
2013-03-03[trunk] split into two config files config options related to the lib and to ↵Mickael Savinaud
the application.
2012-11-16[trunk] rename USE_LEGACY into OPJ_USE_LEGACY for consistency with other #defineMathieu Malaterre
2012-11-16[trunk] Attempt to fix compilation error with mj2Mathieu Malaterre
2012-11-16[trunk] solve the problem with new opj_ symbols in color.cMickael Savinaud
2012-11-15[trunk]extend last commits to appsMickael Savinaud
2012-09-28[trunk] Start FolderReorgProposal taskMathieu Malaterre
Update issue 177