diff options
author | John Moffett <john.moff@gmail.com> | 2023-02-10 16:13:40 -0500 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-02-20 17:15:38 +0000 |
commit | 64e7db6f4f256656f4d78a96b07e51f7d5c6d526 (patch) | |
tree | 752e173ec74afba218d33cce97be63ba984affd9 /doc/release-notes/release-notes-0.5.2.md | |
parent | b7e242ecb3aa0074aea753e5bc9f8d22674e8294 (diff) | |
download | bitcoin-64e7db6f4f256656f4d78a96b07e51f7d5c6d526.tar.xz |
Zero out wallet master key upon lock
When an encrypted wallet is locked (for instance via the
RPC `walletlock`), the docs indicate that the key is
removed from memory. However, the vector (with a secure
allocator) is merely cleared. This allows the key to persist
indefinitely in memory. Instead, manually fill the bytes with
zeroes before clearing.
Github-Pull: #27080
Rebased-From: 3a11adc7004d21b3dfe028b190d83add31691c55
Diffstat (limited to 'doc/release-notes/release-notes-0.5.2.md')
0 files changed, 0 insertions, 0 deletions