mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
wallet: Add error handling. Check return value of ParseUInt32(...) in ParseHDKeypath(...).
This commit is contained in:
parent
7223263899
commit
27ee53c1ae
1 changed files with 3 additions and 1 deletions
|
@ -4433,7 +4433,9 @@ bool ParseHDKeypath(std::string keypath_str, std::vector<uint32_t>& keypath)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
uint32_t number;
|
uint32_t number;
|
||||||
ParseUInt32(item, &number);
|
if (!ParseUInt32(item, &number)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
path |= number;
|
path |= number;
|
||||||
|
|
||||||
keypath.push_back(path);
|
keypath.push_back(path);
|
||||||
|
|
Loading…
Add table
Reference in a new issue