summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-13CMakeLists.txt: do not set INSTALL_NAME_DIR for MacOS builds for CMake >= ↵Even Rouault
3.0 (fixes #1404)
2022-02-10opj_j2k_decode_tile(): avoid 'Stream too short' error in non-strict modeEven Rouault
2022-02-10Merge pull request #1408 from rouault/fix_ossfuzz_44544Even Rouault
Avoid integer overflows in DWT. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=44544
2022-02-10Avoid integer overflows in DWT. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=44544
2022-02-10Add support for partial bitstream decoding (#1407) (fixes #715)Robert Gabriel Jakabosky
Add a -allow-partial option to opj_decompress utility and a opj_decoder_set_strict_mode() option to the API Co-authored-by: Chris Hafey <chafey@gmail.com>
2022-01-26Add .github/ISSUE_TEMPLATE.mdEven Rouault
2022-01-24Merge pull request #1403 from rouault/configure_guard_bitsEven Rouault
opj_encoder_set_extra_options(): add a GUARD_BITS=value option
2022-01-23opj_encoder_set_extra_options(): add a GUARD_BITS=value optionEven Rouault
and add a -GuardBits option to opj_compress. The recently-released SMPTE DCP Bv2.1 Application Profile (link below) says that the number of guard bits in the QCD marker shall be 1 for 2K content and 2 for 4K content. This change allows the number of guard bits to be configured, so that users of openjpeg have the control they need to meet the specification. https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=9161348 This is an alternative implementation of https://github.com/uclouvain/openjpeg/pull/1388 that keeps ABI unchanged.
2022-01-18Fix potential overflow related issues spotted by LGTM code analysis (#1402)Eric Harvey
2022-01-18Merge pull request #1401 from rouault/fix_1399Even Rouault
opj_j2k_setup_encoder(): validate number of tiles to avoid illegal values and potential overflow (fixes #1399)
2022-01-18opj_j2k_setup_encoder(): validate number of tiles to avoid illegal values ↵Even Rouault
and potential overflow (fixes #1399)
2022-01-16Fix unsigned vs OPJ_INT32 mismatches (#1398)Eric Harvey
2022-01-15Added check for integer overflow in get_num_images (#1397)Eharve14
As discussed in pull request 1396, added a check for integer overflow. Change list: Defined num_images as unsigned int Moved the if statement to check for an empty directory to the beginning of the read directory section Added a check to see if num images would roll back to zero when incrementing.
2022-01-13Avoid overflow in multiplications in utilities related to big number of ↵Eharve14
files in a directory (CVE-2021-29338) (#1396)
2022-01-12opj_compress/opj_uncompress: fix integer overflow in num_images (#1395)Brad Parham
Includes the fix for CVE-2021-29338 Credit to @kaniini based on #1346 Fixes #1338
2021-12-10Merge pull request #1392 from stweil/duplicateEven Rouault
Remove duplicate assignments in function tiftoimage
2021-12-10Remove duplicate assignments in function tiftoimageStefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-05Merge pull request #1390 from stweil/typosEven Rouault
Fix some typos (found by codespell)
2021-12-05Format source file with typo fixesStefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-05Fix singular/plural mismatchStefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-05Fix some typos (found by codespell)Stefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-10-27opj_compress: add a -TargetBitDepth switch for TIFF output (#1384)msheby
Sometimes, given the same (16-bit TIF) input, one wants to generate a variety of J2C outputs (say, 16-, 12-, and 10-bit). This patch allows one to downsample input files, and so makes it easier to automate OpenJPEG in mass generation of J2Cs without having to pipe though an image processing program.
2021-10-27ci: Add CIFuzz actionDavid Korczynski
Signed-off-by: David Korczynski <david@adalogics.com>
2021-10-21Merge pull request #1383 from rouault/deprecate_bppEven Rouault
API: deprecate 'bpp' member in favor of 'prec'
2021-10-21API: deprecate 'bpp' member in favor of 'prec'Even Rouault
in opj_image_comp and opj_image_comptparm structures. bpp was redundant with prec, and almost never set by the library, except by opj_image_create(). This change should hopefully not impact existing, working, users of the API, which should already have used prec to get things working. Fixes #1379
2021-10-21tests/: reformat a few files to be modifiedEven Rouault
2021-09-27tests/fuzzers/build_seed_corpus.sh: add htj2k filesEven Rouault
2021-09-26Test decoding a .jhc file with vertically causal context variationEven Rouault
2021-09-26README.md: update badge to github action workflows [ci skip]Even Rouault
2021-09-26Test decoding a .jph test fileEven Rouault
2021-09-26opj_dump.c: fix potential buffer overflowEven Rouault
2021-09-25Merge pull request #1381 from rouault/htj2k_followupEven Rouault
Added support for high throughput (HTJ2K) decoding.
2021-09-25ht_dec.c: fix likely issue on big endian hosts (untested)Even Rouault
2021-09-25opj_decompress / opj_dump: accept .jph and .jhc extensions for HTJ2K filesEven Rouault
2021-09-25Added support for high throughput (HTJ2K) decoding.Aous Naman
There are a few limitations: - mixed mode (HT and regular code blocks) is not supported. - ROI in HT blocks is not supported. - Placeholder passes are not supported. - MultiHT sets are not support, only a singleHT set. - there are known issues with some compliance testing files related to the parsing of packet header.
2021-09-15Merge pull request #1380 from rouault/fix_verify_indent_prEven Rouault
verify-indentation.sh: fix for pull request from bar/master to foo/master
2021-09-15CI 'regular': fix static builds when doing perf checksEven Rouault
2021-09-15verify-indentation.sh: fix for pull request from bar/master to foo/masterEven Rouault
2021-09-14Merge pull request #1376 from rouault/ghaEven Rouault
Port continuous integration to github actions
2021-09-12Use standard integer types for compatibility with libtiff 4.3.0 (#1377)Jamaika1
2021-09-12appveyor.yml: disable deployEven Rouault
2021-09-12Add github action workflows CIEven Rouault
2021-09-08Merge pull request #1375 from rouault/fix_ossfuzz_11700_30646Even Rouault
Avoid integer overflows in DWT.
2021-09-03Avoid integer overflows in DWT. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11700 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=30646
2021-08-30Merge pull request #1373 from DimitriPapadopoulos/lgtmEven Rouault
LGTM warning: Comparison result is always the same
2021-08-30LGTM warning: Comparison result is always the sameDimitri Papadopoulos
Comparison is always true because pos >= 0.
2021-08-12Merge pull request #1370 from madebr/cmake/export-include-directoryEven Rouault
cmake: add install interface include directory
2021-08-12Merge pull request #1371 from DimitriPapadopoulos/codespellEven Rouault
A couple typos found by codespell
2021-08-12A couple typos found by codespellDimitri Papadopoulos
2021-08-01cmake: add install interface include directoryAnonymous Maarten