diff options
Diffstat (limited to 'src/Volume/Keyfile.cpp')
-rw-r--r-- | src/Volume/Keyfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Volume/Keyfile.cpp b/src/Volume/Keyfile.cpp index e52d58f7..d15dc0d7 100644 --- a/src/Volume/Keyfile.cpp +++ b/src/Volume/Keyfile.cpp @@ -134,7 +134,7 @@ done: } else { - SecureBuffer keyfilePool (VolumePassword::MaxSize); + SecureBuffer keyfilePool (password->Size() <= VolumePassword::MaxLegacySize? VolumePassword::MaxLegacySize: VolumePassword::MaxSize); // Pad password with zeros if shorter than max length keyfilePool.Zero(); |