summaryrefslogtreecommitdiffstats
path: root/crypt/hybridcrypt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'crypt/hybridcrypt.cpp')
-rw-r--r--crypt/hybridcrypt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypt/hybridcrypt.cpp b/crypt/hybridcrypt.cpp
index 610ff1b..4d94ef2 100644
--- a/crypt/hybridcrypt.cpp
+++ b/crypt/hybridcrypt.cpp
@@ -190,7 +190,7 @@ void HybridCrypt::decrypt(QString infileName, QString outfileName)
QByteArray aesIv(EVP_CIPHER_iv_length(EVP_aes_256_cbc()), 0);
// Versuche alle Header zu entschlüsseln
- for (qint32 i = 0; i < keyCount; i++)
+ for (qint32 i = 0; i < keyCount && !infileStream.atEnd(); i++)
{
infileStream >> tmpDataLength;