aboutsummaryrefslogtreecommitdiff
path: root/src/common/base58.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/common/base58.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/base58.cpp b/src/common/base58.cpp
index 30042eeba..454c0db67 100644
--- a/src/common/base58.cpp
+++ b/src/common/base58.cpp
@@ -227,6 +227,7 @@ namespace tools
std::string addr_data;
bool r = decode(addr, addr_data);
if (!r) return false;
+ if (addr_data.size() <= addr_checksum_size) return false;
std::string checksum(addr_checksum_size, '\0');
checksum = addr_data.substr(addr_data.size() - addr_checksum_size);