| Age | Commit message (Collapse) | Author |
|
|
|
Generate pkg-config Libs.private from the actual dependencies linked into
our libraries, rather than hardcoding static lists, to avoid overlinking
of library users when pkg-config is invoked with --static. libopenjpip
doesn't actually link with libcurl, libfcgi, or libpthread, and neither
of our libraries links with libm on Windows (which doesn't have libm).
|
|
code documentation updates
|
|
|
|
|
|
Consider the case where the caller has not set the p_image
pointer to NULL before calling opj_read_header().
If opj_j2k_read_header_procedure() fails while obtaining the rest
of the marker segment when calling opj_stream_read_data() because
the data stream is too short, then opj_j2k_read_header() will
never have the chance to initialize p_image, leaving it
uninitialized.
opj_jp2_read_header() will check the p_image value whether
opj_j2k_read_header() suceeded or failed. This may be detected as
an error in valgrind or ASAN.
The fix is to check whether opj_j2k_read_header() suceeded before
using the output argument p_image.
|
|
file)
Fixes #1567
|
|
width_component_1_or_2 + 1 == with_component_0
Fixes #1563
Also adjusts sycc420_to_rgb() for potential similar issue (amending
commit 7bd884f8750892de4f50bf4642fcfbe7011c6bdf)
|
|
opj_j2k_add_tlmarker(): validate that current tile-part number if smaller that total number of tile-parts
|
|
that total number of tile-parts
Fixes #1564
|
|
Do not turn on 'TPsot==TNsot detection fix' when TNsot==1, and
|
|
and make it active when opj_decoder_set_strict_mode() is called with true
|
|
The fix of 2c0823cb30a70319c704565b59f496e490a3c7f9 (#1530) broke
decoding of some JPEG2000 files where Isot==0, Psot==0, TPsot==0 and
TNsot==0 like the following ones from the GDAL autotest suite:
autotest/gdrivers/data/jpeg2000/stefan_full_rgba_alpha_1bit.jp2
autotest/gdrivers/data/jpeg2000/3_13bit_and_1bit.jp2
|
|
OPJ_DPARAMETERS_DISABLE_TPSOT_FIX flag to disable it
Adresses the use case of https://lists.osgeo.org/pipermail/gdal-dev/2024-November/059805.html
where Sentinel2 L1C JPEG2000 files are made of a single tile-part per
tile.
|
|
Fixes #1340
|
|
Fix memory allocation failure on K230
|
|
Encoder: performance gain ~0.1%
Decoder: performance gain ~2.5%
|
|
reference from Rec. ITU-T T.800 (06/2019):
- Table A.13 – Coding style parameter values for the Scod parameter
- Section A.8.1 Start of packet (SOP)
- Section A.8.2 End of packet header (EPH)
|
|
|
|
|
|
Fixes #1535
|
|
potential later heap-buffer-overflow in in opj_t1_decode_cblk when disabling strict mode
Fixes #1533
|
|
|
|
opj_j2k_decode_tiles(): avoid use of uninitialized l_current_tile_no variable
|
|
|
|
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68763
|
|
|
|
There is a swap16() function which conflicts with such a macro
in the endian.h header. uint16_t swap16(uint16_t val16);
Do as suggested and rename the function to opj_swap16().
|
|
|
|
|
|
Signed-off-by: Stefan Weil <sw@weilnetz.de>
|
|
Signed-off-by: Stefan Weil <sw@weilnetz.de>
|
|
|
|
It was previously included by openjpeg.h
|
|
to https://github.com/uclouvain/openjpeg/pull/1488)
|
|
opj_dwt_decode_tile(): avoid potential UndefinedBehaviorSanitizer 'applying zero offset to null pointer' (fixes #1505)
|
|
opj_decompress: fix off-by-one read heap-buffer-overflow in sycc420_to_rgb() when x0 and y0 are odd (CVE-2021-3575, fixes #1347)
|
|
zero offset to null pointer' (fixes #1505)
|
|
when x0 and y0 are odd (CVE-2021-3575, fixes #1347)
|
|
Compatibility for cmake version < 3.5 is now deprecated in cmake and
specifing version below 3.5 in cmake_minimum_required produces a
warning.[1]
[1] https://cmake.org/cmake/help/latest/release/3.27.html#deprecated-and-removed-features
|
|
|
|
Use NEON instructions for ARM64 (implementation based on microsoft/STL#2127).
Godbolt output here: https://godbolt.org/z/q7GPTqT14
|
|
opj_tcd_dc_level_shift_decode(): avoid increment nullptr (fixes #1480)
|
|
Integer Overflow at j2k.c:3962
|
|
Integer Overflow at j2k.c:11114
|
|
fix ht_dec.c:1215
|
|
(likely harmless issue as we don't dereference it)
|
|
Require `stdint.h` & `inttypes.h`
|
|
destination. fix ht_dec.c:1215 (#1492)
|
|
|