mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-14 14:45:12 +01:00
Add bounds checks in key_io before DecodeBase58Check
This commit is contained in:
@@ -47,7 +47,7 @@ static void Base58Decode(benchmark::State& state)
|
||||
const char* addr = "17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem";
|
||||
std::vector<unsigned char> vch;
|
||||
while (state.KeepRunning()) {
|
||||
(void) DecodeBase58(addr, vch);
|
||||
(void) DecodeBase58(addr, vch, 64);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user