Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openjpeg: Autospec creation for update from version 2.3.1 to version …
…2.4.0 Antonin Descampe (2): Update version number for automatic abi check Comment back opj_previous_version in abi_check.sh Eduardo Barretto (1): jp3d/jpwl/mj2/jpip: Fix resource leaks (#1226) Even Rouault (63): j2k.c: use correct naming convention for total_data_size variable compression: emit POC marker when only one single POC is requested (fixes #1191) opj_j2k_check_poc_val(): fix starting index for checking layer dimension opj_j2k_check_poc_val(): prevent potential write outside of allocated array Add test for previous commit Fix POC in multi-tile scenarios: avoid almost endless loop when a tile has no POC settings Add test for previous commit Change opj_j2k_check_poc_val() to take into account tile number test_decode_area.c: assign tdy to *ptileh instead of *ptilew (fixes #1195) opj_decompress_fuzzer: remove checks regarding input dimensions (fixes #1079) opj_tcd_mct_decode()/opj_mct_decode()/opj_mct_encode_real()/opj_mct_decode_real(): proper deal with a number of samples larger than 4 billion (refs #1151) pi.c: avoid integer overflow, resulting in later invalid access to memory in opj_t2_decode_packets(). Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18979 abi-check.sh: fix false postive ABI error, and display output error log opj_j2k_update_image_dimensions(): reject images whose coordinates are beyond INT_MAX (fixes #1228) opj_tcd_init_tile(): avoid integer overflow tests: add alternate checksums for libtiff 4.1 openjpeg.h: fix values of OPJ_PROFILE_IMF_ constants Implement writing of IMF profiles opj_compress: improve help message regarding new IMF switch opj_decompress: add sanity checks to avoid segfault in case of decoding error Rename mis-named function opj_tcd_get_encoded_tile_size() to opj_tcd_get_encoder_input_buffer_size() Fix warnings about signed/unsigned casts in pi.c struct opj_j2k: remove unused fields, and add some documentation Add support for generation of PLT markers in encoder Add multithreading support in the T1 (entropy phase) encoder Add multithreaded support in the DWT encoder. dwt.c: change sign of constants to match standard and compensate (no functional change) Encoder: use floating-point operations for irreversible transformation tcd.c: add comment compare_images.c: code reformatting Testing: revise testing of lossy encoding by comparing PEAK and MSE with original image opj_mct_encode_real(): add SSE optimization opj_j2k_setup_encoder(): add validation of tile width and height to avoid potential division by zero opj_dwt_encode_1_real(): avoid many bound comparisons, similarly to decoding side Irreversible decoding: align code more closely to the standard by avoid messing up with stepsize (no functional change) Irreversible compression/decompression DWT: use 1/K constant as per standard Irreversible decoding: partially revert previous commit, to fix failures in test suite bench_dwt.c: add a -I switch to test irreversible FWDT/IDWT Speed-up 9x7 IDWD by ~20% Remove useless + 5U margin in opj_dwt_decode_tile_97() Speed-up 9x7 IDWD by ~30% with OPJ_NUM_THREADS=2 Forward DWT: small code refactoring to allow future improvements for the horizontal pass Forward DWT 5x3: performance improvements in horizontal pass, and modest in vertical pass dwt.c: remove unused typedef Forward DWT: small code refactoring to allow future improvements for the vertical pass Forward DWT 5-3: major speed up by vectorizing vertical pass Forward DWT 9-7: major speed up by vectorizing vertical pass T1 encoder: speed-up by aggressive inlining and more cache friendly data organization opj_decompress: fix double-free on input directory with mix of valid and invalid images (CVE-2020-15389) Encoder: avoid uint32 overflow when allocating memory for codestream buffer (fixes #1243) Fix typo in internal function name Encoder: grow buffer size in opj_tcd_code_block_enc_allocate_data() to avoid write heap buffer overflow in opj_mqc_flush (fixes #1283) Encoder: grow again buffer size in opj_tcd_code_block_enc_allocate_data() (fixes #1283) Decoding: deal with some SPOT6 images that have tiles with a single tile-part with TPsot == 0 and TNsot == 0, and with missing EOC pngtoimage(): fix wrong computation of x1,y1 if -d option is used, that would result in a heap buffer overflow (fixes #1284) Encoder: avoid global buffer overflow on irreversible conversion when too many decomposition levels are specified (fixes #1286) opj_t2_encode_packet(): avoid out of bound access of #1294, but likely not the proper fix opj_j2k_setup_encoder(): validate POC compno0 (fixes #1293) opj_t2_encode_packet(): avoid out of bound access of #1297, but likely not the proper fix pi.c: avoid out of bounds access with POC (refs uclouvain/openjpeg#1293 (comment)) opj_j2k_write_sod(): avoid potential heap buffer overflow (fixes #1299) (probably master only) pi.c: avoid out of bounds access with POC (fixes #1302) Prepare for v2.4.0 Jamaika1 (1): Change defined WIN32 Lemures Lemniscati (1): Set ${OPENJPEG_INSTALL_DOC_DIR} to DESTINATION of HTMLs Matthew Sharp (1): Use INC_DIR for OPENJPEG_INCLUDE_DIRS (fixes uclouvain#1174) Max Moroz (1): tests/fuzzers: link fuzz binaries using $LIB_FUZZING_ENGINE. (#1230) Pei JIA (1): Bump Java compatibility from 1.5 to 1.6 (#1263) Robert Ancell (1): JPWL: convert: Fix buffer overflow reading an image file less than four characters (#1196) Sebastian Rasmussen (6): openjp2/j2k: Report error if all wanted components are not decoded. openjp2/j2k: Make comments adhere to specification. openjp2/j2k: Validate all SGcod/SPcod/SPcoc parameter values. openjp2: Error out if failing to create Tier 1 handle. openjp2: Plug memory leak when setting data as TLS fails. openjp2: Plug image leak when failing to allocate codestream index. Tim Gates (1): docs: fix simple typo, producted -> produced Young Xiao (2): convertbmp: detect invalid file dimensions early bmp_read_rle4_data(): avoid potential infinite loop szukw000 (2): color_apply_icc_profile: add checks on the number of components (#1236) Testing for invalid values of width, height, numcomps (#1254) yuan (3): Encoder: grow again buffer size in opj_tcd_code_block_enc_allocate_data() (fixes #1283) Free p_tcd_marker_info to avoid memory leak Encoder: grow again buffer size in opj_tcd_code_block_enc_allocate_data() (fixes #1283)
- Loading branch information