1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-03 00:53:23 +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

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