1
0
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:
Bernd Schoolmann
2025-05-05 12:45:56 +02:00
committed by GitHub
parent 27a175f52f
commit a1e975a6ae
4 changed files with 14 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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