MCPcopy Create free account
hub / github.com/OpenKeyring/oak-keyring / zeroize_all

Function zeroize_all

src/security/crash_handler.rs:57–73  ·  view source on GitHub ↗

Zeroize all registered secrets. Called from crash handler. Uses try_lock() to avoid blocking in signal context. Re-entry safety: if `write_bytes` triggers SIGSEGV on an already-freed page, the Mach exception handler re-enters zeroize_all(). try_lock() returns None on the second call (lock already held), so the re-entrant call is a no-op and the original handler proceeds to _exit(0). This benign r

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

exception_handler_threadFunction · 0.85
sigabrt_handlerFunction · 0.85

Calls 1

iterMethod · 0.80