aboutsummaryrefslogtreecommitdiff
path: root/src/PasswordHash.cpp
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-05-16 11:00:10 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-05-16 11:00:14 +0200
commit05920c5c5ffcedc435eeee29f6357c6b4fdc9c4f (patch)
tree4b6584fe051fe31519c50b48dc59249871f8e59e /src/PasswordHash.cpp
parent7f19b686cc7b47346ba8bab89bb34188f366db10 (diff)
Fix memory leak (mismatch free/delete/delete[]), fix invalid memory access
Diffstat (limited to 'src/PasswordHash.cpp')
-rw-r--r--src/PasswordHash.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PasswordHash.cpp b/src/PasswordHash.cpp
index 329733b..f877d20 100644
--- a/src/PasswordHash.cpp
+++ b/src/PasswordHash.cpp
@@ -3,9 +3,9 @@
namespace odhtdb
{
- OwnedMemory hashPassword(const DataView &plainPassword, const DataView &salt)
+ OwnedByteArray hashPassword(const DataView &plainPassword, const DataView &salt)
{
- OwnedMemory result;
+ OwnedByteArray result;
const uint32_t tCost = 2;
const uint32_t mCost = 1 << 16;