mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 05:43:41 +00:00
[BEEEP] Add zeroizing alloc to desktop_native (#14601)
* Add zeroizing alloc * Cleanup * Cleanup
This commit is contained in:
7
apps/desktop/desktop_native/Cargo.lock
generated
7
apps/desktop/desktop_native/Cargo.lock
generated
@@ -937,6 +937,7 @@ dependencies = [
|
||||
"windows-future",
|
||||
"zbus",
|
||||
"zbus_polkit",
|
||||
"zeroizing-alloc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -3911,6 +3912,12 @@ dependencies = [
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zeroizing-alloc"
|
||||
version = "0.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ebff5e6b81c1c7dca2d0bd333b2006da48cb37dbcae5a8da888f31fcb3c19934"
|
||||
|
||||
[[package]]
|
||||
name = "zvariant"
|
||||
version = "4.2.0"
|
||||
|
||||
@@ -63,3 +63,4 @@ windows-future = "=0.2.0"
|
||||
windows-registry = "=0.4.0"
|
||||
zbus = "=4.4.0"
|
||||
zbus_polkit = "=4.0.0"
|
||||
zeroizing-alloc = "=0.1.0"
|
||||
|
||||
@@ -55,6 +55,7 @@ rsa = { workspace = true }
|
||||
ed25519 = { workspace = true, features = ["pkcs8"] }
|
||||
bytes = { workspace = true }
|
||||
sysinfo = { workspace = true, features = ["windows"] }
|
||||
zeroizing-alloc = { workspace = true }
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
widestring = { workspace = true, optional = true }
|
||||
|
||||
@@ -8,3 +8,8 @@ pub mod password;
|
||||
pub mod powermonitor;
|
||||
pub mod process_isolation;
|
||||
pub mod ssh_agent;
|
||||
|
||||
use zeroizing_alloc::ZeroAlloc;
|
||||
|
||||
#[global_allocator]
|
||||
static ALLOC: ZeroAlloc<std::alloc::System> = ZeroAlloc(std::alloc::System);
|
||||
|
||||
Reference in New Issue
Block a user