mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Add bounds checks in key_io before DecodeBase58Check
This commit is contained in:
parent
2bcf1fc444
commit
5909bcd3bf
4 changed files with 13 additions and 14 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue