package/jasper: bump version to 4.2.8
PATCH 1/1 package/jasper: bump version to 4.2.8
Removed patches which are included in this release.
License file was renamed upstream:
https://github.com/jasper-software/jasper/commit/688601c736165d424b95413ea40d5571a5ccfe02
Added configure option to force builddir:
https://github.com/jasper-software/jasper/blob/version-4.2.8/build/cmake/modules/InSourceBuild.cmake
Added configure option for JAS_STDC_VERSION:
https://github.com/jasper-software/jasper/commit/b8ecbfbf293ee6086e4d40108ad730229388cd8d
--- package/jasper/0001-Fixes-367.patch | 46 -------- package/jasper/0002-Fixes-400.patch | 169 ---------------------------- package/jasper/jasper.hash | 4 +- package/jasper/jasper.mk | 17 ++- 4 files changed, 13 insertions(+), 223 deletions(-) delete mode 100644 package/jasper/0001-Fixes-367.patch delete mode 100644 package/jasper/0002-Fixes-400.patch
package/jasper/0001-Fixes-367.patch deleted +0 -46
@@ -1,46 +0,0 @@ -From aeef5293c978158255ad4f127089644745602f2a Mon Sep 17 00:00:00 2001 -From: Michael Adams <[email protected]> -Date: Thu, 14 Dec 2023 19:04:19 -0800 -Subject: [PATCH] Fixes #367. - -Fixed an integer-overflow bug in the ICC profile parsing code. -Added another invalid image to the test set. - -CVE: CVE-2023-51257 -Upstream: https://github.com/jasper-software/jasper/commit/aeef5293c978158255ad4f127089644745602f2a -Signed-off-by: Thomas Perale <[email protected]> ---- - src/libjasper/base/jas_icc.c | 16 ++++++++++++++-- - 1 file changed, 14 insertions(+), 2 deletions(-) - -diff --git a/src/libjasper/base/jas_icc.c b/src/libjasper/base/jas_icc.c -index 905b823..2d1e91e 100644 ---- a/src/libjasper/base/jas_icc.c -+++ b/src/libjasper/base/jas_icc.c -@@ -1295,10 +1295,22 @@ static int jas_icctxt_input(jas_iccattrval_t *attrval, jas_stream_t *in, - { - jas_icctxt_t *txt = &attrval->data.txt; - txt->string = 0; -- if (!(txt->string = jas_malloc(cnt))) -+ /* The string must at least contain a single null character. */ -+ if (cnt < 1) { - goto error; -- if (jas_stream_read(in, txt->string, cnt) != cnt) -+ } -+ if (!(txt->string = jas_malloc(cnt))) { -+ goto error; -+ } -+ if (jas_stream_read(in, txt->string, cnt) != cnt) { - goto error; -+ } -+ /* Ensure that the string is null terminated. */ -+ if (txt->string[cnt - 1] != '\0') { -+ goto error; -+ } -+ /* The following line is redundant, unless we do not enforce that -+ the last character must be null. */ - txt->string[cnt - 1] = '\0'; - if (strlen(txt->string) + 1 != cnt) - goto error; --- -2.39.5
package/jasper/0002-Fixes-400.patch deleted +0 -169
169 lines not on this page · raw message
package/jasper/jasper.hash +2 -2
@@ -1,3 +1,3 @@ # Locally calculated -sha256 28d28290cc2eaf70c8756d391ed8bcc8ab809a895b9a67ea6e89da23a611801a jasper-2.0.33.tar.gz -sha256 4ad1bb42aff888c4403d792e6e2c5f1716d6c279fea70b296333c9d577d30b81 LICENSE +sha256 98058a94fbff57ec6e31dcaec37290589de0ba6f47c966f92654681a56c71fae jasper-4.2.8.tar.gz +sha256 4ad1bb42aff888c4403d792e6e2c5f1716d6c279fea70b296333c9d577d30b81 LICENSE.txt
package/jasper/jasper.mk +11 -6
@@ -4,22 +4,27 @@ # ################################################################################ -JASPER_VERSION = 2.0.33 +JASPER_VERSION = 4.2.8 JASPER_SITE = https://github.com/jasper-software/jasper/releases/download/version-$(JASPER_VERSION) JASPER_INSTALL_STAGING = YES JASPER_LICENSE = JasPer-2.0 -JASPER_LICENSE_FILES = LICENSE +JASPER_LICENSE_FILES = LICENSE.txt JASPER_CPE_ID_VALID = YES JASPER_SUPPORTS_IN_SOURCE_BUILD = NO JASPER_CONF_OPTS = \ -DJAS_ENABLE_DOC=OFF \ -DJAS_ENABLE_PROGRAMS=OFF -# 0001-Fixes-367.patch -JASPER_IGNORE_CVES += CVE-2023-51257 +# Despite using JASPER_SUPPORTS_IN_SOURCE_BUILD = NO jasper detects an +# in-source-build because a subdirectory inside the source directory +# is used so we need to force the build. +JASPER_CONF_OPTS += \ + -DALLOW_IN_SOURCE_BUILD=ON -# 0002-Fixes-400.patch -JASPER_IGNORE_CVES += CVE-2025-8835 +# needed for cross-compile +JASPER_STDC_VERSION="`echo __STDC_VERSION__ | $(TARGET_CROSS)cpp -E -P -`" +JASPER_CONF_OPTS += \ + -DJAS_STDC_VERSION=$(JASPER_STDC_VERSION) ifeq ($(BR2_STATIC_LIBS),y) JASPER_CONF_OPTS += -DJAS_ENABLE_SHARED=OFF
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Bernd,
Thanks for this version bump. Is this fixing the CMake 4 compatibility?
package/jasper/jasper.mk line 27
Quoted 6 lines · On Tue, 2 Dec 2025 18:59:15 +0100 Bernd Kuhls <[email protected]> wrote:
package/jasper/jasper.mk +4
-2-# 0002-Fixes-400.patch -JASPER_IGNORE_CVES += CVE-2025-8835 +# needed for cross-compile +JASPER_STDC_VERSION="`echo __STDC_VERSION__ | $(TARGET_CROSS)cpp -E -P -`" +JASPER_CONF_OPTS += \ + -DJAS_STDC_VERSION=$(JASPER_STDC_VERSION)
This looks meh. Why does it need this? Why isn't the CMakeLists.txt not detecting this?
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedQuoted 5 lines · Bernd Kuhls
Removed patches which are included in this release.
License file was renamed upstream:
https://github.com/jasper-software/jasper/commit/688601c736165d424b95413ea40d5571a5ccfe02
Quoted 7 lines
Added configure option to force builddir:
https://github.com/jasper-software/jasper/blob/version-4.2.8/build/cmake/modules/InSourceBuild.cmakeAdded configure option for
JAS_STDC_VERSION:
https://github.com/jasper-software/jasper/commit/b8ecbfbf293ee6086e4d40108ad730229388cd8dSigned-off-by Bernd Kuhls <[email protected]>
Applied, thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot