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

Windows: Fix various issues detected by static analysis.

This commit is contained in:
Mounir IDRASSI
2016-08-16 04:04:31 +02:00
parent 1bf219b0dc
commit ce76957a10
8 changed files with 37 additions and 30 deletions

View File

@@ -2328,9 +2328,9 @@ stage3(STREEBOG_CTX *CTX)
memset(buf, 0x00, sizeof buf);
#ifndef __GOST3411_BIG_ENDIAN__
buf[0] = CTX->bufsize << 3;
buf[0] = ((unsigned long long) CTX->bufsize) << 3;
#else
buf[0] = BSWAP64(CTX->bufsize << 3);
buf[0] = BSWAP64(((unsigned long long) CTX->bufsize) << 3);
#endif
pad(CTX);