diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2022-09-20 00:36:47 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2022-09-20 00:46:27 +0000 |
commit | a60d9eb9e6b6a272a3fca8981d89a55955dced55 (patch) | |
tree | 5c0e37886ecb14790b940c077da6db144b901ee3 /src/test/fuzz/psbt.cpp | |
parent | 831675c8dccfa6525ffe751da3cc60709c380953 (diff) |
Bugfix: Wallet: Lock cs_wallet for SignMessage
cs_desc_main is typically locked within scope of a cs_wallet lock, but:
CWallet::IsLocked locks cs_wallet
...called from DescriptorScriptPubKeyMan::GetKeys
...called from DescriptorScriptPubKeyMan::GetSigningProvider which locks cs_desc_main first, but has no access to cs_wallet
...called from DescriptorScriptPubKeyMan::SignMessage
...called from CWallet::SignMessage which can access and lock cs_wallet
Resolve the out of order locks by grabbing cs_wallet in CWallet::SignMessage first
Diffstat (limited to 'src/test/fuzz/psbt.cpp')
0 files changed, 0 insertions, 0 deletions