Update ABI/API compatibility reports after commit c28965f255c711a7b2f84a08b1398e5a0f8...
[openjpeg.git] / abi-check / changelog / openjpeg / current / log.html
index 7e2e0802d95da964cb7ecff1c70b39140ec36c09..3549daa33ba1eb5b1a07be63f06315bc1a8fa404 100644 (file)
 <br/>
 <h1>Changelog from Git</h1><br/><br/>
 <div class='changelog'>
-<pre class='wrap'>commit 2d2861036cfb68560e0cf21340760781ea78595d
-Merge: 1b9a81d 31a03b3
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2018-09-22 22:28:04 +0200
-
-    Merge pull request #1143 from stweil/format
-    
-    openjp2/jp2: Fix two format strings
-
-commit 1b9a81dff7c22ed0cb22bf1033e6dfee1292da31
-Merge: 9d1a9dc c28ed52
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2018-09-22 22:27:14 +0200
+<pre class='wrap'>commit c28965f255c711a7b2f84a08b1398e5a0f807b0e
+Merge: 2624908 a36ae03
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2021-06-08 11:11:04 +0200
 
-    Merge pull request #1149 from rouault/fix_knownfailures
+    Merge pull request #1359 from rouault/TLM
     
-    Update knownfailures- files given current configurations
+    Add support for enabling generation of TLM markers in encoder
 
-commit c28ed521633c074f1e4891208028fe97f7602a14
+commit a36ae0386066c9ddd089788930be5a42a176446e
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2018-09-22 21:56:50 +0200
-
-    Update knownfailures- files given current configurations
+Date:   2021-06-07 15:16:53 +0200
 
-commit 31a03b390a77bfbe4b0f140121d1296acb611f76
-Author: Stefan Weil &lt;sw@weilnetz.de&gt;
-Date:   2018-09-05 21:51:30 +0200
-
-    openjp2/jp2: Fix two format strings
+    Add support for enabling generation of TLM markers in encoder
     
-    Compiler warnings:
+    Support was already there, but restricted to Cinema and IMF profiles,
+    and 255 tiles
     
-    src/lib/openjp2/jp2.c:1008:35: warning:
-     too many arguments for format [-Wformat-extra-args]
-    src/lib/openjp2/j2k.c:1928:73: warning:
-     format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘OPJ_OFF_T {aka long int}’ [-Wformat=]
-    
-    Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
+    * Add -TLM switch added to opj_compress
+    * Make opj_encoder_set_extra_options() function accept a TLM=YES option.
 
-commit 9d1a9dc20dd5155bab977a4f53d05c4bbd66533a
-Merge: d2205ba 56f23b2
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2018-08-11 23:35:35 +0200
+commit 2624908517ac0489ff1b5471f423dfe84d79da08
+Merge: e7d908d b5ec98f
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2021-06-07 15:48:42 +0200
 
-    Merge pull request #1133 from robe2/robe2-pkgconfig-instructions
+    Merge pull request #1360 from rouault/travis_gcc_4_8_fix
     
-    Add -DBUILD_PKGCONFIG_FILES to install instructions
+    .travis.yml: try to fix gcc 4.8 config by updating to xenial
 
-commit 56f23b29a075467fc2377ba086c0263a3eb70fe6
-Author: Regina Obe &lt;lr@pcorp.us&gt;
-Date:   2018-08-11 16:59:30 -0400
+commit b5ec98f14f1947bc75eb76969ad5322490ae8e4c
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2021-06-07 15:41:39 +0200
 
-    Add -DBUILD_PKGCONFIG_FILES to install instructions
-    
-    Building under msys/mingw doesn't automatically install the pkg config files needed to build GDAL and other libraries
+    .travis.yml: try to fix gcc 4.8 config by updating to xenial
 
-commit d2205ba2ee78faeea659263383446c4472b1f9df
-Merge: fd205f4 4170681
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2018-06-20 16:26:24 +0200
+commit e7d908d201a0fef9a619a537dae241341975cab9
+Merge: 7e4e09a f0629cb
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2021-06-07 13:56:11 +0200
 
-    Merge pull request #1121 from rouault/fix_tnsot_zero
+    Merge pull request #1358 from rouault/compiler_warning_fixes
     
-    Fix regression in reading files with TNsot == 0 (refs #1120)
+    Fix various compiler warnings
 
-commit 4170681661126bc9c1348a0183633dc2f4fc8b05
+commit f0629cb1c4c485d905936413556deb2872ac51e5
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2018-06-20 15:06:16 +0200
+Date:   2021-06-07 13:28:26 +0200
 
-    Add test cases for https://github.com/uclouvain/openjpeg/issues/1120 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2785
+    Fix various compiler warnings
 
-commit 0c913b0aba409148b51ca43d45c50ae595449723
+commit 7e4e09a7fb2ee0de857227771b22abff54448cd4
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2018-06-20 14:54:09 +0200
+Date:   2021-06-07 12:57:30 +0200
 
-    Avoid assertion when running opj_j2k_merge_ppt() several time due to e6674f7ed66abdb32a0be5944f618722b6a7b5d5 revert. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2785
+    openjpeg.c: avoid casts of function pointers
 
-commit 832dfd18665da08745748bde2d2563f00c7cd9e7
+commit adb888920edb8477a271e640e5640237e2b4c0bb
+Merge: b6b8d28 99c28c9
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2018-06-20 14:38:41 +0200
+Date:   2021-06-01 22:59:11 +0200
 
-    Revert "Avoid assertion in opj_j2k_merge_ppt() in case premature EOC is encountered in opj_j2k_read_tile_header(). Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2785. Credit to OSS Fuzz" (fixes #1120)
+    Merge pull request #1354 from msabwat/emscripten
     
-    This reverts commit 9906fbf737692486cebabe98169988d818e2e66a.
-    which broke decoding of images where TNsot == 0
+    fix #1345: don't remove big endian test for other platforms
 
-commit fd205f457b157e925e2a6eb03aba397b45b0ed4e
-Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2018-06-16 16:17:58 +0200
+commit 99c28c960c18bfc0a4da5ec24adcedff1f1b143c
+Author: Mehdi Sabwat &lt;mehdi@videolabs.io&gt;
+Date:   2021-06-01 22:39:27 +0200
 
-    opj_compress: try to make help message of -c switch clearer (fixes #1117)
+    fix #1345: don't remove big endian test for other platforms
+    
+    thanks to @ePirat, it turns out that !EMSCRIPTEN does not evaluate to 1 on other platforms, so the the #1345 actually disabled the test for all platforms.
 
-commit 2c7eb4fed9cbed43ae402840f6706998ce2dd1c4
+commit b6b8d28b3a85b74ff5415565cff2c20c019ca3c5
+Merge: 8aaafe6 238e849
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2018-03-12 14:24:20 +0100
+Date:   2021-05-07 11:22:13 +0200
 
-    opj_compress: fix help message regarding default precinct size
+    Merge pull request #1345 from msabwat/emscripten
+    
+    emscripten: disable big endian test
 
-commit a59512e0990c5923de77a542a1386edee32acd47
-Merge: 3910be8 8ad94f6
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2018-03-04 23:54:09 +0100
+commit 238e849746e35232134533d826fdd2420d2e0274
+Author: Mehdi Sabwat &lt;mehdisabwat@gmail.com&gt;
+Date:   2021-04-26 15:37:44 +0200
 
-    Merge pull request #1104 from rouault/macos_fix
+    emscripten: disable big endian test
     
-    Fix Mac builds
+    This test should not run on the emscripten platform because of :
+    https://github.com/emscripten-core/emscripten/blob/dff33368427fba16745c8ce52f11484a67b2855d/cmake/Modules/TestBigEndian.cmake#L5
 
-commit 8ad94f689ecabc5e9058874af42306793d5b93e9
-Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2018-03-04 23:27:44 +0100
+commit 8aaafe69958f3528db4e59b50cbc49494262c7b5
+Author: Jamaika1 &lt;lukaszcz18@wp.pl&gt;
+Date:   2021-05-06 19:30:34 +0200
 
-    Fix Mac builds
+    Import files tiff and yuv(raw) (#1316)
 
-commit 3910be8a68d21df5f23e764c593058ba35557051
-Merge: e98d0a2 cfc5395
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2018-03-04 23:19:59 +0100
+commit 5f653ad673cf0f141801c1c4a810028a9876b5e5
+Merge: 05263ee 85a87cd
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2021-05-06 13:40:43 +0200
 
-    Merge pull request #1062 from radarhere/master
+    Merge pull request #1350 from rouault/remove_jpwl_jp3d_mj2
     
-    Fixed typos
+    Remove obsolete components JPWL, JP3D and MJ2
 
-commit e98d0a20f049c59ba31a19de2fccfaabdcbce502
-Merge: 31a347a d4d7827
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2018-03-04 23:16:04 +0100
+commit 85a87cd505f37027c4b74363b529a1e166e32651
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2021-05-04 19:21:45 +0200
 
-    Merge pull request #1094 from kbabioch/fix/missing-format-string-parameter
-    
-    mj2: Add missing variable to format string in fprintf() invocation in meta_out.c
+    Remove obsolete components JPWL, JP3D and MJ2
 
-commit 31a347a9a04209933c63b180c9ff04bdf8a427e5
-Merge: b02e0d9 db6841a
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2018-03-04 23:13:45 +0100
+commit 05263eeee9bc666184a39cd2a83a7214cc83ec27
+Merge: 0bda718 9727f3a
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2021-05-04 19:15:06 +0200
 
-    Merge pull request #1096 from kbabioch/fix/opj_mj2_extract-help
+    Merge pull request #1348 from rouault/fix_kdu
     
-    opj_mj2_extract: Rename output_location to output_prefix
+    tools/travis-ci/install.sh: fix links to Kakadu and jpylyzer binaries
+
+commit 9727f3ac69a7cd1ca00518c56ef1071881c03c71
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2021-05-04 18:55:43 +0200
+
+    .travis.yml: disable tests that no longer pass for unknown reason
+
+commit 92c0471154960d50ebe68b363f4bb1e2c1e4d775
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2021-05-04 16:27:05 +0200
+
+    tools/travis-ci/install.sh: fix links to Kakadu and jpylyzer binaries
 
-commit b02e0d9c4e746faf7448cb06f0487402dff66083
-Merge: 564fbfb e351c22
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2018-03-04 23:10:48 +0100
+commit 0bda7188b7b545232a341f1d978b1e4feda46fc2
+Merge: 0782cd0 4d0b49e
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2021-01-10 23:58:37 +0100
 
-    Merge pull request #1101 from kbabioch/fix/jp3d-sprintf-overflow
+    Merge pull request #1321 from ffontaine/master
     
-    jp3d: Replace sprintf() by snprintf() in volumetobin()
+    Fix cmake file with DESTDIR
 
-commit e351c22ee8c4d8cef0f212831a00447bc0400601
-Author: Karol Babioch &lt;karol@babioch.de&gt;
-Date:   2018-03-03 10:10:32 +0100
+commit 4d0b49edad7fb31ebbf03c60a45b72aaa7b7412b
+Author: Fabrice Fontaine &lt;fontaine.fabrice@gmail.com&gt;
+Date:   2021-01-07 14:11:26 +0100
 
-    jp3d: Replace sprintf() by snprintf() in volumetobin()
+    cmake/OpenJPEGConfig.cmake: replace ABSOLUTE by REALPATH
     
-    This replaces the unsafe sprintf() invocation by the safer snprintf()
-    one, with the correct buffer size to prevent buffer overflows.
+    Fix #1174 by replacing ABSOLUTE by REALPATH which will resolve symlinks:
+    https://cmake.org/cmake/help/latest/command/get_filename_component.html
     
-    This fixes #1085.
+    Signed-off-by: Fabrice Fontaine &lt;fontaine.fabrice@gmail.com&gt;
 
-commit db6841a099645f5063dc8c2f804b0724a9ea557b
-Author: Karol Babioch &lt;kbabioch@suse.de&gt;
-Date:   2018-03-02 15:19:19 +0100
+commit 14f4c27e7c91f745a1dda9991b5deea3cbef2072
+Author: Fabrice Fontaine &lt;fontaine.fabrice@gmail.com&gt;
+Date:   2021-01-07 14:09:50 +0100
 
-    opj_mj2_extract: Rename output_location to output_prefix
+    Revert "Use INC_DIR for OPENJPEG_INCLUDE_DIRS (fixes uclouvain#1174)"
     
-    This renames the argument in the help output, as the latter better describes
-    the the purpose of this argument.
+    This reverts commit 65586374d639cfc0104419992f9022174b412594 which
+    breaks cross-compilation of poppler under buildroot (because of
+    DESTDIR usage).
 
-commit d4d78272ebe3b65a22e5c98841d451f2078625fa
-Author: Karol Babioch &lt;kbabioch@suse.de&gt;
-Date:   2018-03-02 14:03:03 +0100
+commit 0782cd075d7e9678bf1cb448c1f3d048fabe4489
+Merge: 07a4543 b6f0e41
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2021-01-04 19:42:30 +0100
 
-    mj2: Add missing variable to format string in fprintf() invocation in meta_out.c
+    Merge pull request #867 from pseiderer/fix-lcms2-static-linking-using-pgk-config
     
-    This adds the appropriate variables to the invocation of fprintf(). They were
-    specified in the format string, but were missing in the actual call. This
-    fixes #1074 and #1075.
+    Fix lcms2 static linking using pgk config
 
-commit 564fbfb67830e2eb234bc16b3db8fecf54261f95
-Merge: bce2bd7 b49fa93
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2018-02-25 19:59:18 +0100
+commit b6f0e41399f2e67117de2641b169f4400260be57
+Author: Peter Seiderer &lt;ps.report@gmx.net&gt;
+Date:   2016-11-11 23:35:13 +0100
 
-    Merge pull request #1090 from stweil/utf8
+    thirdparty: lcms2: append flags found by pkg-config if available
+    
+    This change allows to get all required CFLAGS/LDFLAGS in case of static only
+    build.
+    
+    Fixes a buildroot build failure (see [1], [2] and [3]).
+    
+    [1] http://autobuild.buildroot.net/results/5ce/5cee20afd8bef5268832cddcb3a5270746be7a57
+    [2] http://lists.busybox.net/pipermail/buildroot/2016-November/177187.html
+    [3] http://lists.busybox.net/pipermail/buildroot/2016-November/177188.html
     
-    Convert files to UTF-8 encoding
+    Signed-off-by: Peter Seiderer &lt;ps.report@gmx.net&gt;
+    ---
+    Depends on https://github.com/uclouvain/openjpeg/pull/866
 
-commit bce2bd71c06e3550e57442dfa715fcce5351bc7a
+commit 07a454324cfeb431ee3fc3799df522dff252b12b
+Merge: eb27272 75a7f1a
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2018-02-25 19:20:38 +0100
+Date:   2021-01-04 14:06:43 +0100
 
-    .travis.yml: temporarily disable OPJ_CI_ASAN=1 (refs #1091)
-
-commit b49fa93aa759cb2e2e22e174ef793470eb02a148
-Author: Stefan Weil &lt;sw@weilnetz.de&gt;
-Date:   2018-02-24 14:55:33 +0100
-
-    openjp3d: Convert ISO-8859 to UTF-8
+    Merge pull request #866 from tSed/master
     
-    Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
+    fix static build only against tiff and its indirect dependencies
 
-commit 244f52483df75e6507d676b25d31e6e7bf08bdf5
-Author: Stefan Weil &lt;sw@weilnetz.de&gt;
-Date:   2018-02-24 14:51:28 +0100
+commit eb27272a79cd81256e475b9aad8461fda8b7f989
+Merge: 2519439 4d147d9
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2021-01-04 10:45:52 +0100
 
-    jp3d: Convert ISO-8859 to UTF-8
+    Merge pull request #1317 from ffontaine/master
     
-    Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
+    CMakeLists.txt: Don't require a C++ compiler
 
-commit 90b1bffa7e745c754afb56dc89ccb70f8aeeadcf
-Merge: 06f7d41 24d08ff
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2018-02-25 18:21:23 +0100
+commit 4d147d9630653e4c93a70a2a8026c323ed1042d2
+Author: Peter Korsgaard &lt;peter@korsgaard.com&gt;
+Date:   2021-01-04 09:05:42 +0100
 
-    Merge pull request #1080 from setharnold/patch-1
+    CMakeLists.txt: Don't require a C++ compiler
     
-    fix unchecked integer multiplication overflow
+    By default, CMake assumes that the project is using both C and C++.  By
+    explicitly passing 'C' as argument of the project() macro, we tell CMake
+    that only C is used, which prevents CMake from erroring out if a C++
+    compiler doesn't exist.
+    
+    Signed-off-by: Peter Korsgaard &lt;peter@korsgaard.com&gt;
+    [Retrieved (and slightly updated by adding enable_language(CXX) if
+    WITH_ASTYLE is set) from:
+    https://git.buildroot.net/buildroot/tree/package/openjpeg/0003-CMakeLists.txt-Don-t-require-a-C-compiler.patch]
+    Signed-off-by: Fabrice Fontaine &lt;fontaine.fabrice@gmail.com&gt;
 
-commit 06f7d412435ddb62f8e9935af7e306783bc4b75b
+commit 2519439d7d4d0e51abf479afe73f30b1c7c70530
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2018-02-18 14:38:16 +0100
+Date:   2020-12-31 14:54:59 +0100
 
-    bench_dwt: fix wrong index in iteration (issue found by Fethi Migaou)
+    Fix Windows build
 
-commit 24d08ff94ad8b0f51534e46f87cf5a2f2f85d22a
-Author: setharnold &lt;seth.arnold@gmail.com&gt;
-Date:   2018-02-14 17:46:38 -0800
+commit 433edd0eea934e25f6e97aaf912ebed191fa41d1
+Author: Antonin Descampe &lt;antonin@descampe.net&gt;
+Date:   2020-12-31 11:06:28 +0100
 
-    fix unchecked integer multiplication overflow
-    
-    Hello, this fixes an unchecked integer multiplication overflow. Thanks.
+    patch provided 3rdparty zlib to work with MacOS
+
+commit 4db0c8d5aef53dd6eebc730e5a189cf9bf9bae6c
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-12-29 15:34:19 +0100
+
+    Add HOWTO-RELEASE
 
-commit da5e897232ef824daf9a492e746ed22cf2a43f18
+commit 43b8ddc6af015715b2fbda2052a17b29d1538df7
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2018-02-11 13:31:04 +0100
+Date:   2020-12-29 15:01:40 +0100
 
-    Avoid out-of-bounds write overflow due to uint32 overflow computation on images with huge dimensions. Credit to Google Autofuzz project for providing test case
+    Comment back opj_previous_version in abi_check.sh
 
-commit cfc539512a1b138c2feedda9fd2f57d36cdaa0db
-Author: Andrew Murray &lt;radarhere@users.noreply.github.com&gt;
-Date:   2018-02-09 21:02:25 +1100
+commit b93996d5e018b3d9525acf406053d8b46240f914
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-12-29 14:46:50 +0100
 
-    Fixed typos
+    abi_check.sh: Update version number for automatic abi check
 
-commit d96d2b9a2524f41a8e024462f94417c09747ba99
-Merge: 07d526e 6941bc6
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2018-02-05 17:31:49 +0100
+commit b897e2cb369b6944d791209f491f382a983cda87
+Merge: 37ac30c 7dd5497
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-12-28 22:58:58 +0100
 
-    Merge pull request #1055 from ideasman42/patch-1
+    Merge pull request #1312 from stweil/news
     
-    Note that seek uses SEEK_SET behavior.
+    Fix year in NEWS
 
-commit 6941bc67cf0b152adde1a46746037b7e96e947b2
-Author: Campbell Barton &lt;ideasman42@gmail.com&gt;
-Date:   2018-01-18 15:16:03 +1100
+commit 7dd5497b15a33a8020bf1ab116f649328b037a89
+Author: Stefan Weil &lt;sw@weilnetz.de&gt;
+Date:   2020-12-28 22:52:34 +0100
 
-    Note that seek uses SEEK_SET behavior.
+    Fix year in NEWS
+    
+    Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
 
-commit 07d526e4cb93b6d2e1a52cf49e3d011d3d4caa11
+commit 37ac30ceff6640bbab502388c5e0fa0bff23f505
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2018-01-08 09:38:44 +0100
+Date:   2020-12-28 21:55:55 +0100
 
-    opj_t2_encode_packet(): disable setting empty packet header bit to 1 when there is an empty packet
-    
-    This effectively reverts commit 2609fb8077125b5b31f1bcc2f98c12ff1e6572d7
-    since it has been reported that
-    such packets cause decoding issues with cinema J2K hardware
-    decoders: https://groups.google.com/forum/#!topic/openjpeg/M7M_fLX_Bco
+    Prepare for v2.4.0
 
-commit bdcead70d5900cf5b90774b218183334ca898723
-Merge: e4c3595 4841292
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2018-01-07 17:49:37 +0100
+commit a335b4d008359a32656026fa6780ef185b35cf0a
+Merge: 4980f46 0c2b633
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-12-28 21:49:48 +0100
 
-    Merge pull request #1047 from stweil/coverity
+    Merge pull request #1310 from Jamaika1/patch-1
     
-    Fix resource leak (CID 179466)
+    Change defined WIN32
 
-commit e4c3595077b2a38579c32f2c63bb01d5213b64d2
-Merge: d241298 6e6f835
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2018-01-07 17:49:08 +0100
+commit 4980f46210f19bd2d83dffdfeb8496f29d68b9c9
+Merge: 6c5acd4 aaddbc7
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-12-28 19:05:14 +0100
 
-    Merge pull request #1050 from szukw000/changes-for-obsolete-doxygen-tags
+    Merge pull request #1307 from cygwin-lem/pr_use-OPENJPEG_INSTALL_DOC_DIR-to-DESTINATION-of-HTMLs
     
-    Some Doxygen tags are removed
+    Set ${OPENJPEG_INSTALL_DOC_DIR} to DESTINATION of HTMLs
 
-commit d241298fdcd95932346da993d5fbe20210dadd2d
+commit 6c5acd4d656870882432ff28d4103de80d109a8d
+Merge: 98a4c5c 5d494a7
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2018-01-07 17:45:53 +0100
+Date:   2020-12-28 19:04:28 +0100
 
-    Add known failure for Windows VC10 i386 target (refs #1043)
+    Merge pull request #1308 from timgates42/bugfix_typo_produced
+    
+    docs: fix simple typo, producted -&gt; produced
 
-commit 6e6f8354a0614a6af61568a73aea573b8e76f894
-Author: szukw000 &lt;szukw000@arcor.de&gt;
-Date:   2018-01-07 17:11:09 +0100
+commit 0c2b633992417c8794470c9932e3c75447c8ab13
+Author: Jamaika1 &lt;lukaszcz18@wp.pl&gt;
+Date:   2020-12-21 07:59:12 +0100
 
-    Some Doxygen tags are removed
+    Change defined WIN32
 
-commit 4841292b5df8f5ed3c92f1760769428ad7500b7a
-Author: Stefan Weil &lt;sw@weilnetz.de&gt;
-Date:   2017-12-15 16:49:33 +0100
+commit 5d494a7e8b9591a8923f387679c692b5c1f45e5a
+Author: Tim Gates &lt;tim.gates@iress.com&gt;
+Date:   2020-12-16 21:19:17 +1100
 
-    Fix resource leak (CID 179466)
-    
-    Coverity report:
+    docs: fix simple typo, producted -&gt; produced
     
-    CID 179466 (#1 of 1): Resource leak (RESOURCE_LEAK)
-    93. leaked_storage: Variable name going out of scope leaks the storage it points to.
+    There is a small typo in thirdparty/include/zlib.h, thirdparty/libz/zlib.h.
     
-    Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
+    Should read `produced` rather than `producted`.
 
-commit 9d0d1a0128c7a9324c9a935b2ded01deb4d660d4
-Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-11-30 15:39:45 +0100
+commit aaddbc7c07f00f0704da4db7616e6dc7448e5f07
+Author: Lemures Lemniscati &lt;lemures.lemniscati@gmail.com&gt;
+Date:   2020-12-14 23:00:04 +0900
 
-    Add known failure for i386 target (refs #1043)
+    Set ${OPENJPEG_INSTALL_DOC_DIR} to DESTINATION of HTMLs
+    
+    Use ${OPENJPEG_INSTALL_DOC_DIR} as DESTINATION of HTML documents,
+    instead of share/doc.
 
-commit 98cfdd31340509895f3e2a36f667f66bb3cf1ff2
+commit 98a4c5c3709e0cc43b0a1c151ed5bd85a2d607fa
+Merge: 5d0a8b0 6558637
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-11-30 14:48:34 +0100
+Date:   2020-12-10 15:55:41 +0100
 
-    opj_j2k_read_cod: remove check for 'No more than one COD marker per tile' (fixes #1043)
+    Merge pull request #1306 from matthew-sharp/master
     
-    This check was added per https://github.com/uclouvain/openjpeg/commit/daed8cc9195555e101ab708a501af2dfe6d5e001
-    to fix https://github.com/uclouvain/openjpeg/issues/476 , but it does not seem
-    to be necessary with latest master (issue476.jp2 doesn't cause memory issues),
-    and breaks reading legit files.
+    Use INC_DIR for OPENJPEG_INCLUDE_DIRS (fixes uclouvain#1174)
 
-commit 936910cf7a4d85e341582746126d105a8a044f30
-Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-11-30 14:26:17 +0100
+commit 65586374d639cfc0104419992f9022174b412594
+Author: Matthew Sharp &lt;sharpshopter@gmail.com&gt;
+Date:   2020-12-10 10:17:46 +1100
 
-    Fix typo in comments
+    Use INC_DIR for OPENJPEG_INCLUDE_DIRS (fixes uclouvain#1174)
+    This fixes the case where the cmake file is accessed via a symlink.
 
-commit 370d024d108ffe2d5ce9b52f6b7fae5261c4871d
-Merge: d9f8f7b 157a3d8
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2017-11-14 12:28:44 +0100
+commit 5d0a8b08dcd3bcdf532c54702b5a88ec61b17918
+Merge: 43dd9ee 8f5aff1
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-12-05 11:39:23 +0100
 
-    Merge pull request #1042 from radarhere/cmake
+    Merge pull request #1304 from rouault/fix_1302
     
-    Changed cmake version test to allow for cmake 2.8.11.x
+    pi.c: avoid out of bounds access with POC (fixes #1302)
 
-commit 157a3d840884abe5020b1a8b94576a7447063385
-Author: Andrew Murray &lt;radarhere@users.noreply.github.com&gt;
-Date:   2017-11-14 21:45:09 +1100
+commit 8f5aff1dff510a964d3901d0fba281abec98ab63
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-12-04 20:45:25 +0100
 
-    Changed cmake version test to allow for cmake 2.8.11.x
+    pi.c: avoid out of bounds access with POC (fixes #1302)
 
-commit d9f8f7ba9a51732eda9017cea6493cc86a62c7ef
-Merge: 53d2655 10d22ec
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2017-10-20 21:59:14 +0200
+commit 43dd9ee17894a22fa3df88b1e561274632d9ab43
+Merge: aaff099 4ce7d28
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-12-04 20:37:43 +0100
 
-    Merge pull request #1037 from gfiumara/master
+    Merge pull request #1303 from zodf0055980/fix#1283
     
-    Add missing fclose() statement in error condition.
+    Encoder: grow again buffer size
 
-commit 10d22ec26d864e93ad92b4570f044258c6c5bdf9
-Author: Gregory Fiumara &lt;gregory.fiumara@nist.gov&gt;
-Date:   2017-10-20 15:31:45 -0400
+commit 4ce7d285a55d29b79880d0566d4b010fe1907aa9
+Author: yuan &lt;zodf0055980@gmail.com&gt;
+Date:   2020-12-04 19:00:22 +0800
 
-    Add missing fclose() statement in error condition.
+    Encoder: grow again buffer size in opj_tcd_code_block_enc_allocate_data() (fixes #1283)
 
-commit 53d265576ae0cea480f22f3b08f1c05c8af40d4d
+commit aaff099b49365cfecfc475ada48b9244c6eefc9c
+Merge: fb9eae5 73fdf28
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-10-14 22:42:12 +0200
+Date:   2020-12-02 23:56:57 +0100
 
-    CMakeLists.txt: turn BUILD_PKGCONFIG_FILES ON by default on Windows if compiler is GCC
+    Merge pull request #1301 from rouault/fix_1299
+    
+    opj_j2k_write_sod(): avoid potential heap buffer overflow (fixes #1299) (probably master only)
 
-commit be6ea90e13fe81a922d831b589c54554282e5545
+commit fb9eae5d637d06209a6cb9ca57960ac72179ee14
+Merge: fc6abdb 00383e1
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-10-12 01:16:23 +0200
+Date:   2020-12-02 23:56:39 +0100
 
-    opj_j2k_set_threads(): add sanity check to error out if called after opj_read_header()
+    Merge pull request #1300 from rouault/complement_1293
+    
+    pi.c: avoid out of bounds access with POC (refs https://github.com/uclouvain/openjpeg/issues/1293#issuecomment-737122836)
 
-commit b8bf9bf78995526bbf0dc0536914661a07f9d2f5
+commit fc6abdbeb7aa427685c28a9ebfd2e653c10999b3
+Merge: 18b1138 38d661a
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-10-12 01:05:04 +0200
+Date:   2020-12-02 23:56:30 +0100
 
-    Improve doc of opj_codec_set_threads()
+    Merge pull request #1298 from rouault/fix_1297
+    
+    opj_t2_encode_packet(): avoid out of bound access of #1297, but likely not the proper fix
 
-commit 66297f07a43d2770a97c8456d20202f3d051d980
+commit 73fdf28342e4594019af26eb6a347a34eceb6296
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-10-09 11:40:43 +0200
+Date:   2020-12-02 14:10:16 +0100
 
-    Unix build: fix regression of 2.3.0 where a shared-only or static-only build lacks the installation target for the library (#1019, fixes regression introduced by 3dfc6ca2bcf06fd1adb6b6b4cecc6c092f08ba0b)
+    opj_j2k_write_sod(): avoid potential heap buffer overflow (fixes #1299) (probably master only)
 
-commit e8b6b54d1f7a2c3d501b9afebe9019ad14f4053a
+commit 00383e162ae2f8fc951f5745bf1011771acb8dce
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-10-06 19:25:07 +0200
-
-    opj_decompress -h: document -threads ALL_CPUS
-
-commit acd915080e7a63d1892171533ec245e629c88116
-Author: Antonin Descampe &lt;antonin@gmail.com&gt;
-Date:   2017-10-04 23:17:04 -0300
-
-    Finalise ABI check update for v2.3.0
-
-commit d322cc876f976a88328c00c148e5a5536f5c1b56
-Author: Antonin Descampe &lt;antonin@gmail.com&gt;
-Date:   2017-10-04 22:59:08 -0300
+Date:   2020-12-02 14:02:17 +0100
 
-    Update ABI check for v2.3.0
+    pi.c: avoid out of bounds access with POC (refs https://github.com/uclouvain/openjpeg/issues/1293#issuecomment-737122836)
 
-commit 081de4b15f54cb4482035b7bf5e3fb443e4bc84b
-Author: Antonin Descampe &lt;antonin@descampe.net&gt;
-Date:   2017-10-04 19:23:14 -0300
+commit 38d661a3897052c7ff0b39b30c29cb067e130121
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-12-02 13:13:26 +0100
 
-    Update CHANGELOG.md
+    opj_t2_encode_packet(): avoid out of bound access of #1297, but likely not the proper fix
 
-commit 3916fa2e2a286ea795cdb6df7cebed6ac05be983
-Author: Antonin Descampe &lt;antonin@descampe.net&gt;
-Date:   2017-10-03 17:48:44 -0300
+commit 18b1138fbe3bb0ae4aa2bf1369f9430a8ec6fa00
+Merge: 630b485 c9380ed
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-12-02 10:05:39 +0100
 
-    Update NEWS.md
+    Merge pull request #1295 from rouault/fix_1293
+    
+    opj_j2k_setup_encoder(): validate POC compno0 and compno1 (fixes #1293)
 
-commit ab84ad39d71481555efdd2dd7c56b344b7b75f0f
-Author: Antonin Descampe &lt;antonin@descampe.net&gt;
-Date:   2017-10-03 17:48:09 -0300
+commit 630b485f86a6b0bb6fa03b698b8c5358df88d055
+Merge: 61ff143 fbd30b0
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-12-02 10:05:31 +0100
 
-    Update CHANGELOG.md
+    Merge pull request #1296 from rouault/workaround_1294
+    
+    opj_t2_encode_packet(): avoid out of bound access of #1294, but likely not the proper fix
 
-commit 5a67128a251af3f9557d6a9b3b23a7925aec1a5f
-Author: Antonin Descampe &lt;antonin@descampe.net&gt;
-Date:   2017-10-03 17:15:44 -0300
+commit c9380ed0f8cc4794fc71d556ea23ae61e32247af
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-12-01 19:39:09 +0100
 
-    Update NEWS.md
+    opj_j2k_setup_encoder(): validate POC compno0 (fixes #1293)
 
-commit 0b8903d9ea482d85dcaf8def1ddc41597105b228
-Author: Antonin Descampe &lt;antonin@gmail.com&gt;
-Date:   2017-10-03 17:08:30 -0300
+commit fbd30b064f8f9607d500437b6fedc41431fd6cdc
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-12-01 19:51:35 +0100
 
-    Preparing v2.3.0 release
+    opj_t2_encode_packet(): avoid out of bound access of #1294, but likely not the proper fix
 
-commit 47b43dbc2bb5a1e6d61bde91e57ccf7191b07616
-Merge: d45ccb0 8ed5886
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2017-09-28 11:24:59 +0200
+commit 61ff143ad63b9bbe12b6da266f8619b2cb2c3559
+Merge: 2d119d0 6daf5f3
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-12-01 11:35:59 +0100
 
-    Merge pull request #1028 from quangnh89/master
+    Merge pull request #1292 from rouault/fix_1286
     
-    update instructions to build with Visual Studio and 64-Bit Visual C++ Toolset.
+    Encoder: avoid global buffer overflow on irreversible conversion when…
 
-commit 8ed588608f13af16f63e38267c1d51b124d6d8ad
-Author: Quang Nguyen &lt;quangnh89@gmail.com&gt;
-Date:   2017-09-28 10:00:09 +0700
+commit 6daf5f3e1ec6eff03b7982889874a3de6617db8d
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-11-30 22:37:07 +0100
 
-    update instructions to build with Visual Studio and 64-Bit Visual C++ Toolset.
+    Encoder: avoid global buffer overflow on irreversible conversion when too many decomposition levels are specified (fixes #1286)
 
-commit d45ccb048bb2166c5d975f4e1b8acaf8ba3d198d
-Merge: 3f0de88 e17bbde
-Author: Antonin Descampe &lt;antonin@descampe.net&gt;
-Date:   2017-09-26 18:30:20 -0300
+commit 2d119d03a0c9f5e3b6c2a70c30cbdcea4857b40a
+Merge: b207240 1aa3c60
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-11-30 23:28:31 +0100
 
-    Merge pull request #1022 from rouault/partial_component_decoding
+    Merge pull request #1291 from rouault/tnsot_zero_missing_eoc
     
-    Add capability to decode only a subset of all components of an image.
+    Decoding: deal with some SPOT6 images that have tiles with a single tile-part with TPsot == 0 and TNsot == 0, and with missing EOC
 
-commit 3f0de88c7bf4e56826987aa7d3edb5acdd4399f2
+commit b2072402b7e14d22bba6fb8cde2a1e9996e9a919
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-22 21:43:09 +0200
+Date:   2020-11-30 22:31:51 +0100
 
-    Remove opjstyle binary that went inadvertently committed in d4e54e9f35d532062533f1d369c159810b01d224 (#1026)
+    pngtoimage(): fix wrong computation of x1,y1 if -d option is used, that would result in a heap buffer overflow (fixes #1284)
 
-commit 3dfb01228b4f06a538c2a19352e34fd172e20fe3
+commit 1aa3c60859ab2a3edb7a68682f131c6b3a91da72
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-22 12:03:29 +0200
+Date:   2020-11-30 17:36:27 +0100
 
-    INSTALL.md: add instructions to build with Visual Studio (#1023, from Winfried instructions)
+    Decoding: deal with some SPOT6 images that have tiles with a single tile-part with TPsot == 0 and TNsot == 0, and with missing EOC
 
-commit e5a561b5d86e6292832a7baefdcdf24e25821ae3
-Merge: 4c8aba2 f92d30f
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2017-09-21 17:39:24 +0200
+commit a2b2980a4bcb4d3903375de31495f99dde0e98a8
+Merge: 0c0f27f 4f48779
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-11-27 14:25:11 +0100
 
-    Merge pull request #1024 from stweil/warnings
+    Merge pull request #1288 from zodf0055980/master
     
-    Add missing newline at end of file
+    Free p_tcd_marker_info to avoid memory leak
 
-commit f92d30f9e7340f50294cca438c1fb62fb4fb03dd
-Author: Stefan Weil &lt;sw@weilnetz.de&gt;
-Date:   2017-09-14 22:02:41 +0200
+commit 4f487798bac3eea5ffa07d3cc542f675c4b4d9ae
+Author: yuan &lt;zodf0055980@gmail.com&gt;
+Date:   2020-11-26 00:22:49 +0800
 
-    Add missing newline at end of file
-    
-    This fixes warnings from the clang compiler:
-    
-    /openjpeg/src/lib/openjp2/sparse_array.h:141:32: warning:
-     no newline at end of file [-Wnewline-eof]
-    
-    Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
+    Free p_tcd_marker_info to avoid memory leak
 
-commit 4c8aba2add074c4a8101156037e9ca7051bc4baf
+commit 0c0f27f17d431d98d190f30bec3879f434512158
+Merge: 15cf3d9 649298d
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-21 14:37:01 +0200
+Date:   2020-11-25 16:59:46 +0100
 
-    Add assertion
+    Merge pull request #1287 from zodf0055980/master
+    
+    Encoder: grow again buffer size
 
-commit 113e0976e232ac2110d50405f8629787f3f53cfc
-Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-21 14:14:32 +0200
+commit 649298dcf84b2f20cfe458d887c1591db47372a6
+Author: yuan &lt;zodf0055980@gmail.com&gt;
+Date:   2020-11-25 20:41:39 +0800
 
-    Comment dead code (Coverity CID 94681)
+    Encoder: grow again buffer size in opj_tcd_code_block_enc_allocate_data() (fixes #1283)
 
-commit 39082fc6654553f43f6f3a73e0eeaedebc4bdf9f
+commit 15cf3d95814dc931ca0ecb132f81cb152e051bae
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-21 14:13:16 +0200
+Date:   2020-11-23 18:14:02 +0100
 
-    Workaround Coverity CID 113061
+    Encoder: grow again buffer size in opj_tcd_code_block_enc_allocate_data() (fixes #1283)
 
-commit 7711307d865d46ca1bb8bb152071178b10066d05
+commit eaa098b59b346cb88e4d10d505061f669d7134fc
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-21 14:10:49 +0200
+Date:   2020-11-23 13:49:05 +0100
 
-    Workaround Coverity CID 169392
+    Encoder: grow buffer size in opj_tcd_code_block_enc_allocate_data() to avoid write heap buffer overflow in opj_mqc_flush (fixes #1283)
 
-commit 19e157871ff28bb5e8296f9e9f9aee6a17a37ace
+commit 67ec360f48aeded95d06578e717bdf40a8e6d16f
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-21 14:06:03 +0200
+Date:   2020-11-23 13:38:27 +0100
 
-    opj_j2k_get_default_thread_count(): validate value of OPJ_NUM_THREADS to fix Coverity 179465 and 179463
+    Fix typo in internal function name
 
-commit 68e596dada2ee38a66b01494e5a425e623688300
+commit 491299eb073c80602ca8ee333303a31a581d3fa8
+Merge: 65c8f57 1c5627e
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-21 13:54:14 +0200
+Date:   2020-10-09 13:25:27 +0200
 
-    Fix copy&amp;paste error (Coverity CID 169394)
+    Merge pull request #1253 from rouault/floating_point_irreversible_encoding
+    
+    Single-threaded performance improvements in forward DWT for 5-3 and 9-7 (and other improvements)
 
-commit 16b701659d7d9f72aade1d695818a645e2f603a6
-Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-20 01:06:02 +0200
+commit 65c8f577d2f057e80040e98958eae80ca76c6b94
+Author: Pei JIA &lt;jiapei@longervision.com&gt;
+Date:   2020-09-23 02:34:31 -0700
 
-    opj_decompress: add a warning when -d and -t are used together (#693)
+    Bump Java compatibility from 1.5 to 1.6 (#1263)
 
-commit b8c4b450c4b5bec649463573f57235c4f41c57cd
+commit 0f16986738725799237548ce6a2ea12516850e72
+Merge: cbee789 0863ccf
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-20 00:55:22 +0200
+Date:   2020-09-16 11:52:10 +0200
 
-    Use a #define J2K_MAX_POCS 32 to avoid hard-coded constant (#349)
+    Merge pull request #1276 from rouault/fix_1243
+    
+    Encoder: avoid uint32 overflow when allocating memory for codestream buffer (fixes #1243)
 
-commit 9cba05762ded66b803df94b00adbd5a97727da95
+commit 0863ccf291238de15ca00da366b4c40fa9ffb673
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-20 00:43:54 +0200
+Date:   2020-09-16 11:27:53 +0200
 
-    Avoid index-out-of-bounds access when invoking opj_compress with -n 11 or higher. But not a proper fix itself (refs #493)
+    Encoder: avoid uint32 overflow when allocating memory for codestream buffer (fixes #1243)
 
-commit 8df07d5866c9e3517bf04a7abee4a07a04735df4
+commit cbee7891a0ee664dd83ca09553d2e30da716a883
+Merge: 172c8ae e8e258a
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-19 18:35:52 +0200
+Date:   2020-06-30 22:05:13 +0200
 
-    Avoid relying on operator precedence (raised by cppcheck)
+    Merge pull request #1262 from rouault/fix_1261
+    
+    opj_decompress: fix double-free on input directory with mix of valid and invalid images
 
-commit c22ea12219c711031ef9b5823f2d9eb1081261e9
+commit e8e258ab049240c2dd1f1051b4e773b21e2d3dc0
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-19 18:35:31 +0200
+Date:   2020-06-28 14:19:59 +0200
 
-    Workaroudn cppcheck (correct) warning about same code in then and else branches
+    opj_decompress: fix double-free on input directory with mix of valid and invalid images (CVE-2020-15389)
+    
+    Fixes #1261
+    
+    Credits to @Ruia-ruia for reporting and analysis.
 
-commit c84e594cffb181b96f522becf1ba0302e2cc6da7
+commit 172c8ae5cf230ff74b5814daf29e5b577aa30a9b
+Merge: e252438 b028e8d
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-19 18:35:07 +0200
+Date:   2020-06-22 22:35:44 +0200
 
-    Fix badly named variable in function prototype (raised by cppcheck)
+    Merge pull request #1260 from sebras/fix-issue-1259
+    
+    openjp2: Plug image leak when failing to allocate codestream index.
 
-commit 82ab7effe3e65b989ee8e97719ceca71908b16ed
+commit e252438d5e23e6ba9561e73a5a4754713bfd626a
+Merge: 98150d0 79b199a
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-19 18:34:49 +0200
+Date:   2020-06-22 22:12:08 +0200
 
-    Remove redundant test (raised by cppcheck)
+    Merge pull request #1258 from sebras/fix-issue-1257
+    
+    openjp2: Plug memory leak when setting data as TLS fails.
 
-commit ce8edf9bffb8caae5480b862a04b66e0e355394b
-Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-19 18:25:55 +0200
+commit b028e8d1ce7798f61c35b1b20d836f80d78a35d0
+Author: Sebastian Rasmussen &lt;sebras@gmail.com&gt;
+Date:   2020-06-23 02:18:19 +0800
 
-    Replace  C++ style comments by C ones
+    openjp2: Plug image leak when failing to allocate codestream index.
+    
+    This fixes issue #1259.
 
-commit d415723fd9f2ee415e506e94ee8be8127680fdcd
-Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-19 18:22:07 +0200
+commit 79b199a8fee2a0d51d4389fcde3f5f4dd01971eb
+Author: Sebastian Rasmussen &lt;sebras@gmail.com&gt;
+Date:   2020-06-23 02:18:19 +0800
 
-    Replace  C++ style comments by C ones
+    openjp2: Plug memory leak when setting data as TLS fails.
+    
+    Previously the Tier 1 handle was not freed when setting it as
+    TLS failed.
+    
+    This fixes issue #1257.
 
-commit e17bbde9066600528ab523adee69d9c9c33ba157
+commit 98150d09422149305c9c8648337a744df5786fbe
+Merge: 25fb144 93b9f72
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-19 17:48:07 +0200
+Date:   2020-06-22 21:03:23 +0200
 
-    opj_set_decoded_components(): add a provision for a apply_color_transforms parameter in case we support it in the future
+    Merge pull request #1256 from sebras/master
+    
+    openjp2: Error out if failing to create Tier 1 handle.
 
-commit 7e2b6bebff12eab8bdc17fc9af017e8c11652f4f
-Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-19 16:52:07 +0200
+commit 93b9f7236ce09614ea5edcb0f616f1b4095c4830
+Author: Sebastian Rasmussen &lt;sebras@gmail.com&gt;
+Date:   2020-06-23 02:18:19 +0800
 
-    Add capability to decode only a subset of all components of an image.
-    
-    This adds a opj_set_decoded_components(opj_codec_t *p_codec,
-    OPJ_UINT32 numcomps, const OPJ_UINT32* comps_indices) function,
-    and equivalent "opj_decompress -c compno[,compno]*" option.
+    openjp2: Error out if failing to create Tier 1 handle.
     
-    When specified, neither the MCT transform nor JP2 channel transformations
-    will be applied.
+    Previously when the handle failed to be created (e.g. when
+    opj_calloc returned NULL due to low memory), the code still
+    assumed that the t1 handle pointer was valid and dereferenced
+    NULL, causing a crash. After this commit OpenJPEG will instead
+    error out under this condition.
     
-    Tests added for various combinations of whole image vs tiled-based decoding,
-    full or reduced resolution, use of decode area or not.
+    This fixes issue #1255.
+
+commit 25fb144c42f97489594302e1e6ff886791e0a5b3
+Author: szukw000 &lt;szukw000@arcor.de&gt;
+Date:   2020-06-10 17:40:50 +0200
 
-commit ce199f42e77f972d6ee782b63492f6d861891053
+    Testing for invalid values of width, height, numcomps (#1254)
+
+commit 1c5627ee7406f84cfb40809b7ac31c63342427df
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-19 12:48:12 +0200
+Date:   2020-05-24 15:38:21 +0200
 
-    src/bin/jp3d/convert.c: add missing fclose() in error code path (#1018)
+    T1 encoder: speed-up by aggressive inlining and more cache friendly data organization
+    
+    ~ 9% speed improvement seen on 10980x10980 uint16 image, T36JTT_20160914T074612_B02.tif
+    opj_compress time from 17.2s to 15.8s
 
-commit fdef69b43ce5222ac0f2a87f2fad1442ece340e8
+commit 1e931fdb3655c64ab60ea5657f79309331a86485
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-19 12:46:20 +0200
+Date:   2020-05-22 23:57:51 +0200
 
-    Fix warnings and errors when compiling with a c++ compiler (#1021)
+    Forward DWT 9-7: major speed up by vectorizing vertical pass
+    
+    `bench_dwt -I -encode` times goes from 8.6s to 2.1s
 
-commit 18f6696372f4c32334385f8dcc8d39ad8ac24601
+commit a38e970fa59abd796c703ec469e578b09f7ffa33
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-19 12:13:34 +0200
+Date:   2020-05-22 17:50:15 +0200
 
-    Fix compilation with AppleClang 8.1.0.8020042 (#1020)
+    Forward DWT 5-3: major speed up by vectorizing vertical pass
+    
+    `bench_dwt -encode` times goes from 7.9s to 1.7s
 
-commit 3dfc6ca2bcf06fd1adb6b6b4cecc6c092f08ba0b
+commit e69fa09f604bc472f9fbff5c2b2db65e8dbe2418
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-17 12:17:49 +0200
+Date:   2020-05-22 15:58:47 +0200
 
-    Build: make sure that -DBUILD_SHARED_LIBS:bool=off is honoured to build only the static lib (#1019)
+    Forward DWT: small code refactoring to allow future improvements for the vertical pass
 
-commit 28094e1ebfa420f9a0bdc7a11b8d4ee5f154db35
+commit 33d3d0de07be710f53940c7548b9f2bd58ff3210
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-08 10:56:49 +0200
+Date:   2020-05-22 15:06:29 +0200
 
-    opj_tcd_mct_decode(): avoid heap buffer overflow when components have not the same number of resolutions. Also fixes an issue with subtile decoding. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3331. Credit to OSS Fuzz
+    dwt.c: remove unused typedef
 
-commit 33167ddc13fd20313ccfcdc64141000407b68b8f
+commit 97b384aecdeea0c286213f5caf6244ec08ea32d7
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-08 09:53:52 +0200
+Date:   2020-05-22 15:03:40 +0200
 
-    opj_j2k_update_image_data(): restrict optimized path
+    Forward DWT 5x3: performance improvements in horizontal pass, and modest in vertical pass
 
-commit b73ce715d2a484d7355639d863d0418a0e5b8858
+commit bd5f5ee7dea851aedae630fee094ef3b0ff0c888
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-08 09:16:51 +0200
+Date:   2020-05-21 21:20:19 +0200
 
-    Use opj_image_data_free() where appropriate (adapted from https://github.com/uclouvain/openjpeg/pull/1015/commits/dab9db0723a5bb9f3d745f9dd7a0b8b3b18b8054, #1014)
+    Forward DWT: small code refactoring to allow future improvements for the horizontal pass
 
-commit 5abd86b14bb26d1882ee1c07b03f809f85162a5d
+commit 45a35223b79dee65a0059f999b690072e829669f
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-07 18:01:33 +0200
+Date:   2020-05-21 16:54:48 +0200
 
-    Properly fix cc893a4ebfaf8c42cf1221ac82c83df91e77340b to avoid heap-buffer-overflow when numcomps &lt; 3
+    Speed-up 9x7 IDWD by ~30% with OPJ_NUM_THREADS=2
+    
+    "bench_dwt -I" time goes from 2.2s to 1.5s
 
-commit 51a1dcaa6ed5713520dca36fc58cd9240c08b7ca
+commit 272b3e0fb2530ca8bffdc8c64f1505a8ff5f6ecc
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-07 17:52:59 +0200
+Date:   2020-05-21 11:24:29 +0200
 
-    Avoid malloc poisoning issue when including &lt;pthread.h&gt; of uclibc (#1013)
+    Remove useless + 5U margin in opj_dwt_decode_tile_97()
+    
+    Nothing in code analysis nor test suite shows that this margin is
+    needed.
+    It dates back to commit dbeebe72b9d35f6ff807c21c7f217b569fa894f6
+    where vector 9x7 decoding was introduced.
 
-commit cc893a4ebfaf8c42cf1221ac82c83df91e77340b
+commit 47943daa15983d20ab1ffd0a237125f1493c5658
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-07 15:32:54 +0200
+Date:   2020-05-21 11:23:00 +0200
 
-    opj_tcd_mct_decode(): fix checks to verify MCT can be done safely. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3305 (master only)
+    Speed-up 9x7 IDWD by ~20%
+    
+    "bench_dwt -I" time goes from 2.8s to 2.2s
 
-commit c67e1cd73f6c1fca081f5445af4f65b240c40edc
+commit 0c09062464fe74f62fb9a4da829992c6a8bd7920
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-06 17:33:38 +0200
+Date:   2020-05-20 23:20:48 +0200
 
-    Fix invalid access out of bounds, and bad behaviour, when calling repeatdly opj_get_decoded_tile() on an image with a color palette
+    bench_dwt.c: add a -I switch to test irreversible FWDT/IDWT
 
-commit 297f202104fc0ff6b0627e15e7e6883c915f80bf
+commit 19ef7f26c43f689b627aad642da7f6150893b863
+Merge: 1d358f2 f3ee448
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-06 16:49:28 +0200
+Date:   2020-05-20 21:10:55 +0200
 
-    Fix 2.2.0 regression when reading codestream with reperated calls to opj_get_decoded_tile() where tile parts of a same tile are not consecutive
+    Merge pull request #1211 from sebras/master
     
-    This check was introduced per #939, but relied on the incorrect assumption
-    we decode all the tile parts of all tiles.
+    Add check to validate SGcod/SPcoc/SPcod parameter values.
 
-commit 003759a4829f3f1baa5a2292956618fecf314818
+commit adccbc8336ce5c46ca7de85ac364d9c992d337c7
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-06 15:59:19 +0200
+Date:   2020-05-20 19:24:09 +0200
 
-    Fix null pointer dereference on partial tile decoding when they are empty. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3297 (master only)
+    Irreversible decoding: partially revert previous commit, to fix failures in test suite
 
-commit e656822f927c869f31f2685c67644eacb75fc5d2
+commit 1d358f25c8eabbc7c274bcc148f4f5d594ec13fe
+Merge: 64689d0 4edb8c8
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-05 23:32:03 +0200
+Date:   2020-05-20 20:29:31 +0200
 
-    Add knownfailures-Ubuntu12.04-gcc4.6.3-x86_64-Release-3rdP.txt
+    Merge pull request #1246 from rouault/write_plt
     
-    For some reason, the OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Release OPJ_NUM_THREADS=2
-    configuration fails once PR1010 has been merged in master
-    ( https://travis-ci.org/uclouvain/openjpeg/jobs/272219011 ) whereas (almost) the same
-    code in my branch didn't fail per https://travis-ci.org/rouault/openjpeg/jobs/271738113
-    
-    The errors we get are the same as with the other x86_64 compilers, so nothing alarming here.
+    Add support for generation of PLT markers in encoder
 
-commit 968e36bbd989fdf789c6a02c80c747346bb851c5
-Merge: 3a382d3 579b893
-Author: Even Rouault &lt;even.rouault@mines-paris.org&gt;
-Date:   2017-09-05 22:18:58 +0200
+commit 4edb8c83374f52cd6a8f2c7c875e8ffacccb5fa5
+Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
+Date:   2020-04-21 15:55:44 +0200
 
-    Merge pull request #1010 from rouault/subtile_decoding_stage3
+    Add support for generation of PLT markers in encoder
+    
+    * -PLT switch added to opj_compress
+    * Add a opj_encoder_set_extra_options() function that
+      accepts a PLT=YES option, and could be expanded later
+      for other uses.
+    
+    -------
+    
+    Testing with a Sentinel2 10m band, T36JTT_20160914T074612_B02.jp2,
+    coming from S2A_MSIL1C_20160914T074612_N0204_R135_T36JTT_20160914T081456.SAFE
+    
+    Decompress it to TIFF:
+    ```
+    opj_uncompress -i T36JTT_20160914T074612_B02.jp2 -o T36JTT_20160914T074612_B02.tif
+    ```
     
-    Subtile decoding: memory use reduction and perf improvements
+    Recompress it with similar parameters as original:
+    ```
+    opj_compress -n 5 -c [256,256],[256,256],[256,256],[256,256],[256,256] -t 1024,1024 -PLT -i T36JTT_20160914T074612_B02.tif -o T36JTT_20160914T074612_B02_PLT.jp2
+    ```
+    
+    Dump codestream detail with GDAL dump_jp2.py utility (https://github.com/OSGeo/gdal/blob/master/gdal/swig/python/samples/dump_jp2.py)
+    ```
+    python dump_jp2.py T36JTT_20160914T074612_B02.jp2 &gt; /tmp/dump_sentinel2_ori.txt
+    python dump_jp2.py T36JTT_20160914T074612_B02_PLT.jp2 &gt; /tmp/dump_sentinel2_openjpeg_plt.txt
+    ```
+    
+    The diff between both show very similar structure, and identical number of packets in PLT markers
+    
+    Now testing with Kakadu (KDU803_Demo_Apps_for_Linux-x86-64_200210)
+    
+    Full file decompression:
+    ```
+    kdu_expand -i T36JTT_20160914T074612_B02_PLT.jp2 -o tmp.tif
+    
+    Consumed 121 tile-part(s) from a total of 121 tile(s).
+    Consumed 80,318,806 codestream bytes (excluding any file format) = 5.329697
+    bits/pel.
+    Processed using the multi-threaded environment, with
+        8 parallel threads of execution
+    ```
+    
+    Partial decompresson (presumably using PLT markers):
+    ```
+    kdu_expand -i T36JTT_20160914T074612_B02.jp2 -o tmp.pgm -region "{0.5,0.5},{0.01,0.01}"
+    kdu_expand -i T36JTT_20160914T074612_B02_PLT.jp2 -o tmp2.pgm  -region "{0.5,0.5},{0.01,0.01}"
+    diff tmp.pgm tmp2.pgm &amp;& echo "same !"
+    ```
+    
+    -------
+    
+    Funded by ESA for S2-MPC project
 
-commit 579b8937eae7e6b6868b8b5c6286a742c10a5130
+commit 64689d05dfaaf52105581d93fb1eb173b20829a4
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-04 17:35:52 +0200
+Date:   2020-04-18 18:25:44 +0200
 
-    Replace uses of size_t by OPJ_SIZE_T
+    struct opj_j2k: remove unused fields, and add some documentation
 
-commit 3a382d312306f45853b3ad78b770754d4bc7e440
+commit 774889a328abd5d3c280d9a897f1ac4c672cb0e5
+Merge: b6b7e96 271a71e
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-03 00:30:36 +0200
+Date:   2020-04-17 00:39:46 +0200
 
-    opj_getopt.c: avoid crash on invalid input (#301)
+    Merge pull request #1244 from rouault/fix_pi_warnings
+    
+    Fix warnings about signed/unsigned casts in pi.c
 
-commit e5ab1682a1bf52c203b16720011d869901929ac9
-Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-02 09:10:53 +0200
+commit b6b7e96b0cf7819ef6a2e8ba2f8bdaaf938326ed
+Author: szukw000 &lt;szukw000@arcor.de&gt;
+Date:   2020-04-17 00:37:33 +0200
 
-    Improve error message when specifying a too big cp_reduce parameter (#474)
+    color_apply_icc_profile: add checks on the number of components (#1236)
 
-commit c1e0fba0c46cb528a08b89b986e86ff0f4792558
+commit 271a71ef0f1dd4740c9f4474279c7da8d15850c9
 Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
-Date:   2017-09-01 22:09:58 +0200
+Date:   2020-04-16 20:52:44 +0200
+
+    Fix warnings about signed/unsigned casts in pi.c
+
+commit f3ee448815eb992b8d4746e32c05e8289f30415f
+Author: Sebastian Rasmussen &lt;sebras@gmail.com&gt;
+Date:   2018-10-31 15:56:11 +0100
 
-    opj_v4dwt_decode_step1_sse(): rework a bit to improve code generation
+    openjp2/j2k: Validate all SGcod/SPcod/SPcoc parameter values.
+    
+    Previously the multiple component transformation SGcod(C)
+    and wavelet transformation SPcod(H)/SPcoc(E) parameter
+    values were never checked, allowing for out of range values.
+    
+    The lack of validation allowed the bit stream provided in
+    issue #1158 through. After this commit an error message
+    points to the marker segments' parameters as being out of
+    range.
+    
+    input/nonregression/edf_c2_20.jp2 contains an SPcod(H) value
+    of 17, but according to Table A-20 of the specification only
+    values 0 and 1 are valid. input/nonregression/issue826.jp2
+    contains a SGcod(B) value of 2, but according to Table A-17
+    of the specification only values 0 and 1 are valid.
+    input/nonregression/oss-fuzz2785.jp2 contains a SGcod(B)
+    value of 32, but it is likewise limited to 0 or 1. These test
+    cases have been updated to consistently fail to parse the
+    headers since they contain out of bounds values.
+    
+    This fixes issue #1210.
 
 ...</pre></div>