Resolves: RHEL-76762 - disable JAS_DEC_DEFAULT_MAX_SAMPLES

Signed-off-by: Josef Ridky <jridky@redhat.com>
This commit is contained in:
Josef Ridky 2025-07-22 09:43:37 +02:00
parent 27b626a79f
commit 4d4edbba5a
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -urNp a/src/libjasper/include/jasper/jas_config.h.in b/src/libjasper/include/jasper/jas_config.h.in
--- a/src/libjasper/include/jasper/jas_config.h.in 2021-03-29 16:57:11.000000000 +0200
+++ b/src/libjasper/include/jasper/jas_config.h.in 2025-07-22 09:38:45.375828204 +0200
@@ -56,7 +56,7 @@
#endif
#if !defined(JAS_DEC_DEFAULT_MAX_SAMPLES)
-#define JAS_DEC_DEFAULT_MAX_SAMPLES (64 * ((size_t) 1048576))
+#define JAS_DEC_DEFAULT_MAX_SAMPLES 0
#endif
#endif

View File

@ -6,7 +6,7 @@
Summary: Implementation of the JPEG-2000 standard, Part 1
Name: jasper
Version: 2.0.28
Release: 3%{?dist}
Release: 4%{?dist}
License: JasPer
URL: http://www.ece.uvic.ca/~frodo/jasper/
@ -15,6 +15,7 @@ Source0: https://github.com/jasper-software/jasper/archive/version-%{version}.ta
# skip hard-coded prefix/lib rpath
Patch2: jasper-2.0.14-rpath.patch
Patch3: jasper-freeglut.patch
Patch4: jasper-2.0.28-max-samples.patch
# architecture related patches
Patch100: jasper-2.0.2-test-ppc64-disable.patch
@ -68,6 +69,7 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release}
# Need to disable one test to be able to build it on ppc64 arch
# At ppc64 this test just stuck (nothing happend - no exception or error)
%patch3 -p1 -b .freeglut
%patch4 -p1
%if "%{_arch}" == "ppc64"
%patch100 -p1 -b .test-ppc64-disable
@ -128,6 +130,9 @@ make test -C builder
%changelog
* Tue Jul 22 2025 Josef Ridky <jridky@redhat.com> - 2.0.28-4
+ disable JAS_DEC_DEFAULT_MAX_SAMPLES (RHEL-76762)
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.28-3
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688