diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2021-08-29 15:23:59 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2021-08-30 00:26:57 +0200 |
commit | fb1a4893b8dff55f5669e935a419ea87b41f62f6 (patch) | |
tree | f4781d18ef50917ec2b323506401d2d54c7e2109 /src/Common | |
parent | d9e1d57a5323baa821f9962476929b85677ab469 (diff) | |
download | VeraCrypt-fb1a4893b8dff55f5669e935a419ea87b41f62f6.tar.gz VeraCrypt-fb1a4893b8dff55f5669e935a419ea87b41f62f6.zip |
Windows: Fix some VS static analyzed warnings
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/EncryptionThreadPool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/EncryptionThreadPool.c b/src/Common/EncryptionThreadPool.c index 3cb6b878..1401e8a0 100644 --- a/src/Common/EncryptionThreadPool.c +++ b/src/Common/EncryptionThreadPool.c @@ -692,7 +692,7 @@ void EncryptionThreadPoolDoWork (EncryptionThreadPoolWorkType type, byte *data, workItem->Encryption.UnitCount = unitsPerFragment; workItem->Encryption.StartUnitNo.Value = fragmentStartUnitNo; - fragmentData += unitsPerFragment * ENCRYPTION_DATA_UNIT_SIZE; + fragmentData += ((uint64)unitsPerFragment) * ENCRYPTION_DATA_UNIT_SIZE; fragmentStartUnitNo += unitsPerFragment; if (remainder > 0 && --remainder == 0) |