Egor Yusov
ca5e069703
Added option to disable installation
2022-06-30 18:47:24 -07:00
Even Rouault
e3f07dcc07
Merge pull request #1433 from rouault/fix_1432
...
opj_t1_encode_cblk(): avoid undefined behaviour on fuzzed input (fixes #1432 )
2022-06-30 12:57:39 +02:00
Even Rouault
dd1a2d6480
opj_t1_encode_cblk(): avoid undefined behaviour on fuzzed input ( fixes #1432 )
2022-06-29 11:47:58 +02:00
Even Rouault
ca74961656
Merge pull request #1431 from rouault/fix_1430
...
Build: fix linking of executables on some systems where TIFF/LCMS2 static libraries are not in system directories (fixes #1430 )
2022-06-27 23:21:58 +02:00
Even Rouault
338246278a
Build: fix linking of executables on some systems where TIFF/LCMS2 static libraries are not in system directories ( fixes #1430 )
...
Note that the fix might be partial only for static-only builds (cf
comments)
Ammends PR #866 and #867
2022-06-27 12:03:45 +02:00
Yuan
0535bfc3b7
HT_DEC: Fix opj_t1_allocate_buffers malloc size error ( #1426 ) ( fixes #1413 )
2022-05-31 11:55:12 +02:00
Even Rouault
5292728740
Merge pull request #1423 from Neumann-A/patch-1
...
Fix windows arm builds
2022-05-16 23:35:22 +02:00
Even Rouault
86ae7d80bf
Merge pull request #1421 from Biswa96/pkgconf-static
...
pkgconfig: Define OPJ_STATIC for static linking with pkgconf
2022-05-16 23:25:54 +02:00
Alexander Neumann
098bb874db
Fix windows arm builds
2022-05-16 23:10:26 +02:00
Biswapriyo Nath
17d1bc7f1a
pkgconfig: Define OPJ_STATIC for static linking with pkgconf
...
allows for the usage of $(pkgconf --static --cflags libopenjp2) to produce
the proper CFLAGS for static linking. Relies on pkgconf rather than pkg-config
2022-05-15 18:11:50 +05:30
Even Rouault
46b42b616d
HOWTO-RELEASE: update
2022-05-13 20:17:50 +02:00
Even Rouault
e29604cfca
abi_check.sh: comment OPJ_PREVIOUS_VERSION
2022-05-13 20:17:42 +02:00
Even Rouault
77e391cfe6
update tools/abi-tracker/openjpeg.json
2022-05-13 19:13:11 +02:00
Even Rouault
7065d2cd3f
abi_check.sh: Update version number for automatic abi check
2022-05-13 19:02:54 +02:00
Even Rouault
a5891555eb
Prepare for 2.5.0 release
2022-05-13 18:54:29 +02:00
Navidem
cf90ff0c57
Separate fuzz targets to increase coverage ( #1416 )
2022-05-13 18:18:47 +02:00
Even Rouault
a13f979348
Merge pull request #1386 from DavidKorczynski/cifuzz
...
CI: Add CIFuzz action
2022-05-13 17:58:38 +02:00
Even Rouault
76c6a25726
opj_compress.c: usage formatting fix
2022-05-08 19:45:53 +02:00
Even Rouault
576f72112e
Merge pull request #1418 from LongerVision/master
...
Java Support 1.8 now...
2022-05-07 11:52:20 +02:00
Even Rouault
30e7c88bdf
Merge pull request #1419 from rouault/fix_ci
...
tools/travis-ci/install.sh: git clone with https:// to fix 'The unaut…
2022-05-07 11:52:09 +02:00
Even Rouault
ef36cd015e
Rename knownfailures-Ubuntu20.04-gcc9.3.0-x86_64-Release-3rdP.txt to knownfailures-Ubuntu20.04-gcc9.4.0-x86_64-Release-3rdP.txt
2022-05-07 11:14:52 +02:00
Even Rouault
f7b5310e66
.github/workflows/build.yml: force use of windows-2019 VM
2022-05-07 11:05:04 +02:00
Even Rouault
af4fd8d317
tools/travis-ci/install.sh: git clone with https:// to fix 'The unauthenticated git protocol on port 9418 is no longer supported.'
2022-05-07 10:55:00 +02:00
Even Rouault
7b474e6d81
Merge pull request #1410 from rouault/fix_1404
...
CMakeLists.txt: do not set INSTALL_NAME_DIR for MacOS builds for CMake >= 3.0 (fixes #1404 )
2022-05-07 10:23:26 +02:00
Pei Jia
3ac495c7fc
JAVA_SOURCE_VERSION from 1.6 to 1.8
2022-05-06 18:27:27 -07:00
Even Rouault
e33944ea9e
CMakeLists.txt: do not set INSTALL_NAME_DIR for MacOS builds for CMake >= 3.0 ( fixes #1404 )
2022-02-13 10:42:47 +01:00
Even Rouault
6a29f5a9e3
opj_j2k_decode_tile(): avoid 'Stream too short' error in non-strict mode
2022-02-10 15:50:07 +01:00
Even Rouault
3837ff1b1a
Merge pull request #1408 from rouault/fix_ossfuzz_44544
...
Avoid integer overflows in DWT. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=44544
2022-02-10 15:13:49 +01:00
Even Rouault
1462e9403f
Avoid integer overflows in DWT. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=44544
2022-02-10 14:30:13 +01:00
Robert Gabriel Jakabosky
883c31dbe0
Add support for partial bitstream decoding ( #1407 ) ( fixes #715 )
...
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-02-10 14:27:17 +01:00
Even Rouault
99d555c0f1
Add .github/ISSUE_TEMPLATE.md
2022-01-26 21:52:40 +01:00
Even Rouault
a5c95cfe26
Merge pull request #1403 from rouault/configure_guard_bits
...
opj_encoder_set_extra_options(): add a GUARD_BITS=value option
2022-01-24 12:00:46 +01:00
Even Rouault
1de5fc6c51
opj_encoder_set_extra_options(): add a GUARD_BITS=value option
...
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-23 17:54:44 +01:00
Eric Harvey
241e9e8efe
Fix potential overflow related issues spotted by LGTM code analysis ( #1402 )
2022-01-18 21:55:10 +01:00
Even Rouault
d87fd9279a
Merge pull request #1401 from rouault/fix_1399
...
opj_j2k_setup_encoder(): validate number of tiles to avoid illegal values and potential overflow (fixes #1399 )
2022-01-18 17:22:44 +01:00
Even Rouault
70f5e0a0df
opj_j2k_setup_encoder(): validate number of tiles to avoid illegal values and potential overflow ( fixes #1399 )
2022-01-18 15:44:18 +01:00
Eric Harvey
a1eec9c49e
Fix unsigned vs OPJ_INT32 mismatches ( #1398 )
2022-01-16 18:54:00 +01:00
Eharve14
6e4588f379
Added check for integer overflow in get_num_images ( #1397 )
...
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-15 15:33:03 +01:00
Eharve14
1daaa0b909
Avoid overflow in multiplications in utilities related to big number of files in a directory (CVE-2021-29338) ( #1396 )
2022-01-13 21:05:52 +01:00
Brad Parham
79c7d7af59
opj_compress/opj_uncompress: fix integer overflow in num_images ( #1395 )
...
Includes the fix for CVE-2021-29338
Credit to @kaniini based on #1346
Fixes #1338
2022-01-12 13:46:10 +01:00
Even Rouault
fe2fa70716
Merge pull request #1392 from stweil/duplicate
...
Remove duplicate assignments in function tiftoimage
2021-12-10 11:57:41 +01:00
Stefan Weil
af8339d33f
Remove duplicate assignments in function tiftoimage
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-10 11:29:06 +01:00
Even Rouault
22eb737d5d
Merge pull request #1390 from stweil/typos
...
Fix some typos (found by codespell)
2021-12-05 14:32:51 +01:00
Stefan Weil
6ec9871eca
Format source file with typo fixes
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-05 13:38:47 +01:00
Stefan Weil
ef73ad1c97
Fix singular/plural mismatch
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-05 13:32:09 +01:00
Stefan Weil
667149ffa1
Fix some typos (found by codespell)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-12-05 13:14:33 +01:00
msheby
90481203a2
opj_compress: add a -TargetBitDepth switch for TIFF output ( #1384 )
...
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-27 14:10:50 +02:00
David Korczynski
630b9d7fb1
ci: Add CIFuzz action
...
Signed-off-by: David Korczynski <david@adalogics.com>
2021-10-27 11:10:11 +01:00
Even Rouault
9f70bf0ad1
Merge pull request #1383 from rouault/deprecate_bpp
...
API: deprecate 'bpp' member in favor of 'prec'
2021-10-21 17:21:36 +02:00
Even Rouault
0b5d62684f
API: deprecate 'bpp' member in favor of 'prec'
...
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-21 14:13:58 +02:00