summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/j2k.c
AgeCommit message (Collapse)Author
2017-07-30opj_j2k_set_decode_area: replace assertions by runtime checks. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2795. Credit to OSS Fuzz
2017-07-29opj_tcd_get_decoded_tile_size(): fix potential UINT32 overflow (#854, ↵Even Rouault
CVE-2016-5152) Fix derived from https://pdfium.googlesource.com/pdfium.git/+/d8cc503575463ff3d81b22dad292665f2c88911e/third_party/libopenjpeg20/0018-tcd_get_decoded_tile_size.patch
2017-07-29Avoid assertion in opj_j2k_merge_ppt() in case premature EOC is encountered ↵Even Rouault
in opj_j2k_read_tile_header(). Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2785. Credit to OSS Fuzz
2017-07-28Fix null pointer dereference in opj_j2k_add_mct() (#895)Even Rouault
Fixes openjeg-crashes-2017-07-27/issue879-poc1.j2k of #895
2017-07-28Avoid use-after-free when a MCT marker is found after a MCC one (#895)Even Rouault
Fixes openjeg-crashes-2017-07-27/issue880-poc2.j2k of #895
2017-07-27Avoid undefined shift behaviour if bit depth == 32 (#895)Even Rouault
Fixes openjeg-crashes-2017-07-27/id:000000,sig:11,src:003798,op:ext_AO,pos:128.jp2
2017-07-27opj_j2k_update_image_data / opj_tcd_update_tile_data: fix unaligned ↵Even Rouault
load/store (#895) When components don't have the same width, unaligned load/store are possible. Fixes openjeg-crashes-2017-07-27/id:000000,sig:11,src:001342,op:flip4,pos:162.jp2 of #895
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-07-26Fix assertion / memory leak in opj_j2k_merge_ppt() on corrupted images (#939)Even Rouault
Fixes issue on id:000020,sig:06,src:001958,op:flip4,pos:149 that has two SOT markers for the same tile with the same tile part number, causing opj_j2k_merge_ppt() to be called several times.
2017-07-03opj_j2k_read_header_procedure(): validate marker size to avoid excessive ↵Even Rouault
memory allocation attempt
2017-05-23CMake: add stronger warnings for openjp2 lib/bin by default, and error out ↵Even Rouault
on declaration-after-statement And remove occurences of unused arguments in src/lib/openjp2
2017-05-09Reformat whole codebase with astyle.options (#128)Even Rouault
2016-09-14Fix some warnings (#838)Matthieu Darbois
Fix warnings introduced by uclouvain/openjpeg#786
2016-09-08Merge branch 'master' of https://github.com/uclouvain/openjpeg into ↵Even Rouault
tier1_optimizations_multithreading_2 Conflicts: src/lib/openjp2/t1.c
2016-09-06fix incrementing of "l_tcp->m_nb_mcc_records" in opj_j2k_read_mcc (#820)Matthieu Darbois
2016-09-06Add overflow check in opj_j2k_update_image_data (#817)Matthieu Darbois
2016-05-25Add opj_codec_set_threads() in public API and propagate resulting thread ↵Even Rouault
pool to tcd level By default, only the main thread is used. If opj_codec_set_threads() is not used, but the OPJ_NUM_THREADS environment variable is set, its value will be used to initialize the number of threads. The value can be either an integer number, or "ALL_CPUS". If OPJ_NUM_THREADS is set and this function is called, this function will override the behaviour of the environment variable.
2016-05-08Fix Out-of-Bounds Access in function opj_tgt_resetmayeut
Fix uclouvain/openjpeg#775
2016-04-30Fix some coverity warningsmayeut
2016-04-30Fix warnings (#763)Matthieu Darbois
2016-04-29cppcheck fix for openjp2 (#740)julienmalik
2016-04-28Check SSIZ is valid in opj_j2k_read_siz (#762)Matthieu Darbois
2016-04-28Fix unsigned int overflow reported by UBSan (#761)Matthieu Darbois
* Fix unsigned int overflow reported by UBSan Please add -DOPJ_UBSAN_BUILD to CFLAGS when building with -fsanitize=undefined,unsigned-integer-overflow It seems clang/gcc do not allow to disable checking for block of code other than function or file.
2016-04-28Fix implicit float-to-bool conversions (#752)julienmalik
2016-01-25fixed tile numberingAntonin Descampe
Fixes #245
2016-01-11Merge pull request #551 from mayeut/coc-qccMatthieu Darbois
Add COC/QCC in main header when needed
2016-01-06Fix duplicate article in commentsStefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-10-18Merge branch 'master' into coc-qccmayeut
2015-10-17Fixed crash on encodingmayeut
Update #624 Update #625
2015-10-06Merge branch 'master' into coc-qccmayeut
2015-10-06Added missing casts for return values of opj_malloc()/opj_calloc().Stephan Mühlstrasser
2015-10-02Add check for seek support before trying TPsot==TNsot workaroundmayeut
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-17Fix resource leak in opj_j2k_create_cstr_indexmayeut
Fixes #599
2015-09-17Fix resource leak in opj_j2k_encodemayeut
Fixes #598
2015-09-17fix resource leak in opj_j2k_decode_one_tilemayeut
Fixes #597
2015-09-08Merge remote-tracking branch 'uclouvain/master' into coc-qccmayeut
2015-09-06Fix potential use-after-free in opj_j2k_write_mco functionmayeut
Fixes #563
2015-07-31Sync coc-qcc branch with mastermayeut
2015-07-30Remove printf/fprintf to stdout/stderr throughout openjp2 libmayeut
Update uclouvain/openjpeg#246
2015-07-29Write COC/QCC in Main Headermayeut
Update uclouvain/openjpeg#459
2015-07-28Start support for qcc/cocmayeut
2015-07-26Remove some warnings when buildingmayeut
Update #442
2015-07-23Add some missing static keywordsmayeut
Update uclouvain/openjpeg#243
2015-07-21Merge pull request #533 from mayeut/refactor-read-ppXMatthieu Darbois
Refactor opj_j2k_read_ppm & opj_j2k_read_ppt Fixes uclouvain/openjpeg#470 Fixes uclouvain/openjpeg#288 Fixes uclouvain/openjpeg#532
2015-07-12Merge pull request #529 from renevanderark/mastermayeut
fix Suspicious code in j2k.c Fixes #517
2015-07-12Refactor opj_read_ppmmayeut
Update uclouvain/openjpeg#470 Update uclouvain/openjpeg#288
2015-07-12Refactor opj_j2k_read_pptmayeut
Update uclouvain/openjpeg#470 Update uclouvain/openjpeg#532
2015-07-11Add option to force component splitting in imagetopnmmayeut
Update uclouvain/openjpeg#289
2015-07-08fix Suspicious code in j2k.c #517Rene van der Ark