Permalink
Browse files

Merge #7922: CBase58Data::SetString: cleanse the full vector

5770449 CBase58Data::SetString: cleanse the full vector (Kaz Wesley)
  • Loading branch information...
laanwj committed Apr 22, 2016
2 parents 7617682 + 5770449 commit 90653bc91d3915f7315ca17298346c5feb002e77
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/base58.cpp
View
@@ -177,7 +177,7 @@ bool CBase58Data::SetString(const char* psz, unsigned int nVersionBytes)
vchData.resize(vchTemp.size() - nVersionBytes);
if (!vchData.empty())
memcpy(&vchData[0], &vchTemp[nVersionBytes], vchData.size());
memory_cleanse(&vchTemp[0], vchData.size());
memory_cleanse(&vchTemp[0], vchTemp.size());
return true;
}

0 comments on commit 90653bc

Please sign in to comment.