diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2022-03-26 18:46:01 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2022-03-26 21:14:57 +0100 |
commit | 05fd14006d0ee5991f207d2f98a1a9ab0b4060fb (patch) | |
tree | a64bce23d59db0ffc2128e38303f79e2e3f76aa9 /src/Setup | |
parent | 533269ca9a13736eb96196b41b38e7c9b04577ae (diff) | |
download | VeraCrypt-05fd14006d0ee5991f207d2f98a1a9ab0b4060fb.tar.gz VeraCrypt-05fd14006d0ee5991f207d2f98a1a9ab0b4060fb.zip |
Remove dead code from chacha_ECRYPT_encrypt_bytes (Coverity)
Diffstat (limited to 'src/Setup')
-rw-r--r-- | src/Setup/SelfExtract.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Setup/SelfExtract.c b/src/Setup/SelfExtract.c index d5dd3d2c..c672c364 100644 --- a/src/Setup/SelfExtract.c +++ b/src/Setup/SelfExtract.c @@ -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; |