Added fix for rhbz#2251202

This commit is contained in:
Martin Stransky 2023-11-27 11:56:19 +01:00
parent ada751ca27
commit 911eba94d0
2 changed files with 23 additions and 1 deletions

17
D194727.1701168293.diff Normal file
View File

@ -0,0 +1,17 @@
diff --git a/toolkit/components/resistfingerprinting/nsRFPService.cpp b/toolkit/components/resistfingerprinting/nsRFPService.cpp
--- a/toolkit/components/resistfingerprinting/nsRFPService.cpp
+++ b/toolkit/components/resistfingerprinting/nsRFPService.cpp
@@ -1375,11 +1375,11 @@
}
#ifdef __clang__
# pragma clang diagnostic pop
#endif
- for (uint8_t i = 0; i <= numNoises; i++) {
+ while (numNoises--) {
// Choose which RGB channel to add a noise. The pixel data is in either
// the BGRA or the ARGB format depending on the endianess. To choose the
// color channel we need to add the offset according the endianess.
uint32_t channel;
if (aSurfaceFormat == gfx::SurfaceFormat::B8G8R8A8) {

View File

@ -169,7 +169,7 @@ ExcludeArch: i686
Summary: Mozilla Firefox Web browser
Name: firefox
Version: 120.0
Release: 2%{?pre_tag}%{?dist}
Release: 3%{?pre_tag}%{?dist}
URL: https://www.mozilla.org/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+
Source0: https://archive.mozilla.org/pub/firefox/releases/%{version}%{?pre_version}/source/firefox-%{version}%{?pre_version}.source.tar.xz
@ -249,6 +249,7 @@ Patch402: mozilla-1196777.patch
Patch407: mozilla-1667096.patch
Patch408: D167159.diff
Patch411: mozilla-1762816.patch
Patch412: D194727.1701168293.diff
# PGO/LTO patches
Patch600: pgo.patch
@ -541,6 +542,7 @@ This package contains results of tests executed during build.
%patch407 -p1 -b .1667096
%patch408 -p1 -b .D167159
%patch411 -p1 -b .mozilla-1762816
%patch412 -p1 -b .D194727
# PGO patches
%if %{build_with_pgo}
@ -1149,6 +1151,9 @@ fi
#---------------------------------------------------------------------
%changelog
* Mon Nov 27 2023 Martin Stransky <stransky@redhat.com>- 120.0-3
- Add fix for rhbz#2251202
* Mon Nov 20 2023 Martin Stransky <stransky@redhat.com>- 120.0-2
- Updated to 120.0 Build 2