mirror of
https://codeberg.org/librewolf/source.git
synced 2024-12-22 05:33:03 -05:00
add rust-unaligned-access-backport.patch
This commit is contained in:
parent
d1043ca1de
commit
3da107300d
2 changed files with 13 additions and 0 deletions
|
@ -13,6 +13,7 @@ patches/librewolf-prefs.patch
|
|||
patches/mozilla_dirs.patch
|
||||
patches/msix-fixed-113.patch
|
||||
patches/remove_addons.patch
|
||||
patches/rust-unaligned-access-backport.patch
|
||||
patches/sed-patches/allow-searchengines-non-esr.patch
|
||||
patches/sed-patches/disable-pocket.patch
|
||||
patches/sed-patches/stop-undesired-requests.patch
|
||||
|
|
12
patches/rust-unaligned-access-backport.patch
Normal file
12
patches/rust-unaligned-access-backport.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Backport of https://github.com/mozilla/authenticator-rs/pull/246
|
||||
--- a/third_party/rust/authenticator/src/transport/windows/winapi.rs
|
||||
+++ b/third_party/rust/authenticator/src/transport/windows/winapi.rs
|
||||
@@ -221,7 +221,7 @@ impl DeviceInterfaceDetailData {
|
||||
}
|
||||
|
||||
fn path(&self) -> String {
|
||||
- unsafe { from_wide_ptr((*self.data).DevicePath.as_ptr(), self.path_len - 2) }
|
||||
+ unsafe { from_wide_ptr(ptr::addr_of!((*self.data).DevicePath[0]), self.path_len - 2) }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue