summaryrefslogtreecommitdiff
path: root/mozilla-1694670.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2021-03-03 15:14:44 +0100
committerMartin Stransky <stransky@redhat.com>2021-03-03 15:14:44 +0100
commit4a8ca8ee45df679582d17176c91ff10a61b37c09 (patch)
treee9f50d107cec0681b764e50d06f206ebec137e84 /mozilla-1694670.patch
parentMerge branch 'main' into f34 (diff)
parentMerge branch 'f33' into rawhide (diff)
downloadlibrewolf-fedora-ff-4a8ca8ee45df679582d17176c91ff10a61b37c09.tar.gz
librewolf-fedora-ff-4a8ca8ee45df679582d17176c91ff10a61b37c09.tar.bz2
librewolf-fedora-ff-4a8ca8ee45df679582d17176c91ff10a61b37c09.zip
Merge branch 'main' into f34
Diffstat (limited to 'mozilla-1694670.patch')
-rw-r--r--mozilla-1694670.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/mozilla-1694670.patch b/mozilla-1694670.patch
new file mode 100644
index 0000000..7c5eb79
--- /dev/null
+++ b/mozilla-1694670.patch
@@ -0,0 +1,22 @@
+diff --git a/gfx/qcms/src/iccread.rs b/gfx/qcms/src/iccread.rs
+--- a/gfx/qcms/src/iccread.rs
++++ b/gfx/qcms/src/iccread.rs
+@@ -229,7 +229,7 @@
+ read_u16(mem, offset)
+ }
+ pub fn write_u32(mem: &mut [u8], offset: usize, value: u32) {
+- if offset <= mem.len() - std::mem::size_of_val(&value) {
++ if offset > mem.len() - std::mem::size_of_val(&value) {
+ panic!("OOB");
+ }
+ let mem = mem.as_mut_ptr();
+@@ -238,7 +238,7 @@
+ }
+ }
+ pub fn write_u16(mem: &mut [u8], offset: usize, value: u16) {
+- if offset <= mem.len() - std::mem::size_of_val(&value) {
++ if offset > mem.len() - std::mem::size_of_val(&value) {
+ panic!("OOB");
+ }
+ let mem = mem.as_mut_ptr();
+
bgstack15