1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 19:38:26 -06:00

Remove dead code from chacha_ECRYPT_encrypt_bytes (Coverity)

This commit is contained in:
Mounir IDRASSI
2022-03-26 18:46:01 +01:00
parent 533269ca9a
commit 05fd14006d
2 changed files with 16 additions and 15 deletions

View File

@@ -595,6 +595,14 @@ BOOL SelfExtractInMemory (wchar_t *path, BOOL bSkipCountCheck)
if (compressedLen != fileDataEndPos - fileDataStartPos - 8 + 1)
{
Error ("DIST_PACKAGE_CORRUPTED", NULL);
return FALSE;
}
// Test to make Coverity happy. It will always be false
if (uncompressedLen >= (INT_MAX - 524288))
{
Error ("DIST_PACKAGE_CORRUPTED", NULL);
return FALSE;
}
decompressedDataLen = uncompressedLen;