0
Fork 0
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:
Malte Jürgens 2023-05-11 23:10:38 +02:00
parent d1043ca1de
commit 3da107300d
No known key found for this signature in database
GPG key ID: D29FBD5F93C0CFC3
2 changed files with 13 additions and 0 deletions

View file

@ -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

View 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) }
}
}