VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Random.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-20 04:31:20 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-20 05:16:42 (GMT)
commit49a8ff59dc371693dc47050ed1cb034acdb1a53c (patch)
tree6f18c3187832df7cebec2ab6a307774c7def010f /src/Common/Random.c
parentd076bb5133c75453ded3691050b5bd0c35745bf3 (diff)
downloadVeraCrypt-49a8ff59dc371693dc47050ed1cb034acdb1a53c.zip
VeraCrypt-49a8ff59dc371693dc47050ed1cb034acdb1a53c.tar.gz
Windows: Fix crash on 32-bit machines when using Streebog on a CPU that supports SSE4.1.
Diffstat (limited to 'src/Common/Random.c')
-rw-r--r--src/Common/Random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Random.c b/src/Common/Random.c
index edc6acc..9e2d3b3 100644
--- a/src/Common/Random.c
+++ b/src/Common/Random.c
@@ -108,7 +108,7 @@ int Randinit ()
if (pRandPool == NULL)
{
- pRandPool = (unsigned char *) TCalloc (RANDOMPOOL_ALLOCSIZE);
+ pRandPool = (unsigned char *) _aligned_malloc (RANDOMPOOL_ALLOCSIZE, 16);
if (pRandPool == NULL)
goto error;