aboutsummaryrefslogtreecommitdiffstats
path: root/testing/firefox/rust-unitialized-field.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-05-23 13:03:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-05-23 13:04:08 +0000
commit1270b6edc7173822bde0f02e009c1cb65ae50698 (patch)
treedbda4447fe04f8f17d37889ccb25398799d044e6 /testing/firefox/rust-unitialized-field.patch
parent6534855ffe9c130d907c3dd653ab698e2dc0572a (diff)
downloadaports-1270b6edc7173822bde0f02e009c1cb65ae50698.tar.bz2
aports-1270b6edc7173822bde0f02e009c1cb65ae50698.tar.xz
testing/firefox: upgrade to 60.0.1
Diffstat (limited to 'testing/firefox/rust-unitialized-field.patch')
-rw-r--r--testing/firefox/rust-unitialized-field.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/firefox/rust-unitialized-field.patch b/testing/firefox/rust-unitialized-field.patch
new file mode 100644
index 0000000000..67ef3a02ab
--- /dev/null
+++ b/testing/firefox/rust-unitialized-field.patch
@@ -0,0 +1,19 @@
+--- ./media/audioipc/audioipc/src/cmsg.rs.orig 2018-05-09 22:19:14.748631939 +0200
++++ ./media/audioipc/audioipc/src/cmsg.rs 2018-05-09 22:19:22.961620862 +0200
+@@ -106,11 +106,11 @@ impl ControlMsgBuilder {
+ return Err(Error::NoSpace);
+ }
+
+- let cmsghdr = cmsghdr {
+- cmsg_len: cmsg_len as _,
+- cmsg_level: level,
+- cmsg_type: kind,
+- };
++ use std::mem;
++ let mut cmsghdr: cmsghdr = unsafe { mem::zeroed() };
++ cmsghdr.cmsg_len = cmsg_len as _;
++ cmsghdr.cmsg_level = level;
++ cmsghdr.cmsg_type = kind;
+
+ let cmsghdr = unsafe {
+ slice::from_raw_parts(&cmsghdr as *const _ as *const _, mem::size_of::<cmsghdr>())