mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-09 12:12:41 +01:00
wallet: Add error handling. Check return value of ParseUInt32(...) in ParseHDKeypath(...).
This commit is contained in:
@@ -4433,7 +4433,9 @@ bool ParseHDKeypath(std::string keypath_str, std::vector<uint32_t>& keypath)
|
||||
return false;
|
||||
}
|
||||
uint32_t number;
|
||||
ParseUInt32(item, &number);
|
||||
if (!ParseUInt32(item, &number)) {
|
||||
return false;
|
||||
}
|
||||
path |= number;
|
||||
|
||||
keypath.push_back(path);
|
||||
|
||||
Reference in New Issue
Block a user