29 Commits

Author SHA1 Message Date
Vijay Anusuri
10b6475cf2 openjpeg: Fix CVE-2025-50952
Upstream commit:
d903fbb4ab

Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
2025-09-06 16:27:59 +02:00
Vijay Anusuri
2a486ee7cd openjpeg: Backport fix CVE-2023-39327
Upstream commit:
c58bc128b4

Reference:
https://github.com/uclouvain/openjpeg/pull/1547

Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2025-02-09 07:55:02 -08:00
Zhang Peng
291fc3e7fc openjpeg: fix CVE-2024-56827
CVE-2024-56827:
A flaw was found in the OpenJPEG project. A heap buffer overflow
condition may be triggered when certain options are specified while
using the opj_decompress utility. This can lead to an application crash
or other undefined behavior.

Reference:
[https://nvd.nist.gov/vuln/detail/CVE-2024-56827]
[https://github.com/uclouvain/openjpeg/issues/1564]

Upstream patches:
[e492644fbd]

Signed-off-by: Zhang Peng <peng.zhang1.cn@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2025-01-22 19:25:59 -05:00
Zhang Peng
3749051d29 openjpeg: fix CVE-2024-56826
CVE-2024-56826:
A flaw was found in the OpenJPEG project. A heap buffer overflow
condition may be triggered when certain options are specified while
using the opj_decompress utility. This can lead to an application crash
or other undefined behavior.

Reference:
[https://nvd.nist.gov/vuln/detail/CVE-2024-56826]
[https://github.com/uclouvain/openjpeg/issues/1563]

Upstream patches:
[98592ee6d6]

Signed-off-by: Zhang Peng <peng.zhang1.cn@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2025-01-22 19:25:56 -05:00
Vivek Kumbhar
9a22be4267 openjpeg: Backport fix CVE-2021-3575
Upstream-Status: Backport from 7bd884f875

Signed-off-by: Vivek Kumbhar <vkumbhar@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2024-03-25 07:11:05 -04:00
Richard Purdie
c6b90f27a4 meta-oe: Drop broken BBCLASSEXTEND variants
The command "bitbake universe -c fetch" currently throws a ton of warnings
as there are many 'impossible' dependencies.

In some cases these variants may never have worked and were just added by copy
and paste of recipes. In some cases they once clearly did work but became
broken somewhere along the way. Users may also be carrying local bbappend files
which add further BBCLASSEXTEND.

Having universe fetch work without warnings is desireable so clean up the broken
variants. Anyone actually needing something dropped here can propose adding it
and the correct functional dependencies back quite easily. This also then
ensures we're not carrying or fixing things nobody uses.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 9962d57f7c235873de0a0bb192b5f56747762fc7)
Backport:
* Updated paths to follow PV changes
* Adapted modified recipes to the ones generating warnings
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-11-17 10:49:04 -05:00
Davide Gardenal
2763eaf35f openjpeg: ignore CVE-2015-1239
This CVE is patched in our version of openjpeg. The NVD database doesn't
include a version range this is why it's still reported.

Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
2022-07-26 07:08:00 -07:00
Marguet, Nicolas
08d9e91542 openjpeg: fix CVE-2022-1122
CVE: CVE-2022-1122

The defect is undergoing reanalysis and there may be follow-up commits.

Ref:
* https://github.com/uclouvain/openjpeg/issues/1368

Signed-off-by: Nicolas Marguet <nicolas.marguet@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-14 19:42:10 -07:00
Kai Kang
33efb90737 openjpeg: fix CVE-2021-29338
CVE: CVE-2021-29338

Ref:
* https://github.com/uclouvain/openjpeg/issues/1338

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-02-16 08:26:02 -08:00
Richard Purdie
b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Ross Burton
41bbe1c62f openjpeg: add native/nativesdk class extension
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-30 15:36:17 -07:00
zangrc
936c02f1cf openjpeg: upgrade 2.3.1 -> 2.4.0
CVE-2020-15389.patch
CVE-2020-6851.patch
CVE-2020-8112.patch
Removed since these are included in 2.4.0.

Fixed an error where openjpeg.h could not be found.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-01-07 22:57:45 -08:00
Slater, Joseph
26c103da9f openjpeg: fix CVE-2020-15389
Backport from github meta-xilinx-tools.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-01 15:37:45 -07:00
Mingde (Matthew) Zeng
3063ae3b14 net-snmp, openjpeg: add proper CVE tags to patches
Signed-off-by: Mingde (Matthew) Zeng <matthew.zeng@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-07-16 07:14:00 -07:00
Sakib Sajal
f7e11c4c75 openjpeg: Fix CVE-2020-8112
Backport from upstream to fix heap-based buffer overflow.

Upstream-Status: Backport
CVE: CVE-2020-8112

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-17 19:46:35 -07:00
Yue Tao
6ce0a9c9f7 openjpeg: Fix CVE-2020-6851
Backport patch from upstream to fix heap-based buffer overflow

Upstream-Status: Backport
CVE: CVE-2020-6851

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Sakib Sajal <Sakib.Sajal@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-11 15:30:18 -07:00
Christophe PRIOUZEAU
4a5d4e3a72 openjpeg: Clarify BSD license variant
The License of openjpeg is BSD-2-Clause.

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-17 08:35:32 -07:00
Trevor Gamblin
692a502d4a openjpeg: upgrade 2.3.0 -> 2.3.1
Upgrading fixes CVE-2018-21010 and incorporates other bug fixes
from upstream.

The source upgrade to 2.3.1 changed the way include directories are
identified, so the patch 0001-Ensure-cmake-files-are-installed-at-common-location.patch
is no longer needed to help poppler find cmake files.

The contents of /usr/lib/openjpeg-2.3 were added to the FILES
list since poppler needs them to build.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-16 18:24:48 -07:00
Andreas Müller
a96e6d718e openjpeg: fix build for multilib
| ERROR: openjpeg-2.3.0-r0 do_package: QA Issue: openjpeg: Files/directories were installed but not shipped in any package:
|   /usr/lib/libopenjp2.a
|   /usr/lib/libopenjp2.so
|   /usr/lib/libopenjp2.so.2.3.0
|   /usr/lib/libopenjp2.so.7
|   /usr/lib/cmake
|   /usr/lib/pkgconfig
|   /usr/lib/cmake/openjpeg-2.3
|   /usr/lib/cmake/openjpeg-2.3/OpenJPEGConfig.cmake
|   /usr/lib/cmake/openjpeg-2.3/OpenJPEGTargets.cmake
|   /usr/lib/cmake/openjpeg-2.3/OpenJPEGTargets-noconfig.cmake
|   /usr/lib/pkgconfig/libopenjp2.pc

* Addresses [1]
* Build tested with poppler in multilib and non-multilib environment

[1] https://github.com/openembedded/meta-openembedded/issues/103

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-22 15:37:35 -08:00
Andreas Müller
9029f051de openjpeg: cmake fixes to prepare update of poppler
* Move *,cmake from ${libdir}/cmake to ${libdir}/cmake/<name-and-version>
  That is standard location cmake files are installed.
* Do not export executables - they will not be found in dependant's sysroot

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-10-04 08:52:54 -07:00
Andreas Müller
67f7fe586b openjpeg: upgrade 2.2.0 -> 2.3.0
* fetch by git to avoid github checksum surprises
* 0001-bmp_read_info_header-reject-bmp-files-with-biBitCoun.patch was applied upstream

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-21 16:20:36 -07:00
Trevor Woerner
037f6cf1e2 openjpeg: variable cleanup
Reorder recipe variables according to:

	https://www.openembedded.org/wiki/Styleguide

Originally-conceived-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-29 12:56:19 -07:00
Trevor Woerner
bfa9251993 openjpeg: rely on cmake.bbclass to put cmake package files in dev package
The cmake.bbclass in oe-core now ensures that ${libdir}/cmake and
${datadir}/cmake end up in the dev package, so recipes no longer need to
provide custom packaging rules to handles these files.

	http://git.openembedded.org/openembedded-core/commit/?id=d91dc4666683a96e9d03cbbd21b8a546f9069c93

Originally-conceived-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-29 09:15:44 -07:00
dengke.du@windriver.com
37a5e57751 openjpeg: upgrade to 2.2.0
Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-09-07 10:57:37 +02:00
Jackie Huang
d0fa502a22 openjpeg: rename the download file
Rename the download file to avoid collisions in DL_DIR.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-11-23 15:24:44 +01:00
Randy MacLeod
11178d122c openjpeg: uprev from 2.1.0 to 2.1.1
As the package maintainer said, this is mostly a release with:
"the huge amount of critical bug fixes brought to the library since 2 years"
The full list of bugs fixed and other changes is here:
   https://github.com/uclouvain/openjpeg/blob/openjpeg-2.1/CHANGELOG.md

The homepage link was broken so that was fixed.

The project also moved to github and does not appear
to provide tarballs other than via github archives so
the SRC_URI was updated.

An explicit dependency on zlib was added even though cmake was finding
the sysroot version.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-09-11 09:11:22 +02:00
Yi Zhao
bc5c01d5a1 openjpeg: pass correct libdir to cmake
When MACHINE=qemux86-64 and enable multilib:
ERROR: QA Issue: openjpeg: Files/directories were installed but not
shipped in any package:
  /usr/lib
  /usr/lib/libopenjp2.so
  /usr/lib/libopenjp2.so.2.1.0
  /usr/lib/libopenjp2.so.7
  /usr/lib/.debug
  /usr/lib/pkgconfig
  /usr/lib/.debug/libopenjp2.so.2.1.0
  /usr/lib/pkgconfig/libopenjp2.pc
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. [installed-vs-shipped]

Pass the correct libdir configuration option to cmake.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
2015-06-17 22:36:12 +02:00
Andreas Müller
81dab589bd openjpeg: initial add 2.1.0
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
2015-05-28 10:35:14 +02:00