import brotli-1.0.9-7.el9_5

c9 imports/c9/brotli-1.0.9-7.el9_5
MSVSphere Packaging Team 2 months ago
parent 998085ce71
commit f6361cd2d6
Signed by: sys_gitsync
GPG Key ID: B2B0B9F29E528FE8

@ -0,0 +1,14 @@
--- brotli-1.0.9/c/dec/bit_reader.h.RHEL-32153-kBrotliBitMask-bounds 2020-08-27 16:12:55.000000000 +0200
+++ brotli-1.0.9/c/dec/bit_reader.h 2024-09-11 12:42:29.143308077 +0200
@@ -28,8 +28,10 @@ static BROTLI_INLINE uint32_t BitMask(ui
/* Masking with this expression turns to a single
"Unsigned Bit Field Extract" UBFX instruction on ARM. */
return ~((0xFFFFFFFFu) << n);
- } else {
+ } else if (n < 33) {
return kBrotliBitMask[n];
+ } else {
+ return 0;
}
}

@ -1,6 +1,6 @@
Name: brotli
Version: 1.0.9
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Lossless compression algorithm
License: MIT
@ -8,6 +8,7 @@ URL: https://github.com/google/brotli
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: 09b0992b6acb7faa6fd3b23f9bc036ea117230fc.patch
Patch1: RHEL-32153-kBrotliBitMask-bounds.patch
%if 0%{?rhel} == 7
BuildRequires: devtoolset-7-toolchain, devtoolset-7-libatomic-devel
@ -139,6 +140,9 @@ done
%changelog
* Wed Sep 11 2024 Eike Rathke <erack@redhat.com> - 1.0.9-7
- Check BitMask(n) n value for kBrotliBitMask[n] bounds
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.9-6
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688

Loading…
Cancel
Save