diff options
| author | practicalswift <[email protected]> | 2017-07-22 23:52:57 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-07-26 01:48:40 +0200 |
| commit | 065039da1f83d0fe5b74d3b33be6d48e19d78d7f (patch) | |
| tree | dc858e8813a34ac92452d9530c95b40b10520fce /src | |
| parent | Merge #10508: Run Qt wallet tests on travis (diff) | |
| download | discoin-065039da1f83d0fe5b74d3b33be6d48e19d78d7f.tar.xz discoin-065039da1f83d0fe5b74d3b33be6d48e19d78d7f.zip | |
[tests] Fix incorrect memory_cleanse(…) call in crypto_tests.cpp
chKey and chIV are pointers, not arrays :-)
Probably the result of copy-pasting of old code which was
operating on arrays instead of pointers.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/test/crypto_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/test/crypto_tests.cpp b/src/wallet/test/crypto_tests.cpp index 524a72c30..744063624 100644 --- a/src/wallet/test/crypto_tests.cpp +++ b/src/wallet/test/crypto_tests.cpp @@ -26,8 +26,8 @@ bool OldSetKeyFromPassphrase(const SecureString& strKeyData, const std::vector<u if (i != (int)WALLET_CRYPTO_KEY_SIZE) { - memory_cleanse(chKey, sizeof(chKey)); - memory_cleanse(chIV, sizeof(chIV)); + memory_cleanse(chKey, WALLET_CRYPTO_KEY_SIZE); + memory_cleanse(chIV, WALLET_CRYPTO_IV_SIZE); return false; } return true; |