electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 416b68705493a232818c28817129a126791147e8
parent 78258a3a950921dd7e160eec7a8ced7055e8a7e6
Author: SomberNight <somber.night@protonmail.com>
Date:   Fri, 26 Oct 2018 19:31:20 +0200

storage: add a sanity check

see #4803

Diffstat:
Melectrum/storage.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/electrum/storage.py b/electrum/storage.py @@ -175,6 +175,8 @@ class WalletStorage(JsonDB): self.print_error('Failed to convert label to json format', key) continue self.data[key] = value + if not isinstance(self.data, dict): + raise WalletFileException("Malformed wallet file (not dict)") # check here if I need to load a plugin t = self.get('wallet_type')