diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-08-09 23:32:44 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-08-15 01:09:14 +0200 |
commit | b146e235f893b62befc413ff547ee7bfba0de5c9 (patch) | |
tree | 1eef3e740f58a07f204fdafa3efb48338e953532 /src/Common/Format.c | |
parent | 07ee8c10691d05e4e290ecdaa634ad5311b3cbb1 (diff) | |
download | VeraCrypt-b146e235f893b62befc413ff547ee7bfba0de5c9.tar.gz VeraCrypt-b146e235f893b62befc413ff547ee7bfba0de5c9.zip |
Windows: align buffers used for keys to avoid issues when SSE used.
Diffstat (limited to 'src/Common/Format.c')
-rw-r--r-- | src/Common/Format.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/Format.c b/src/Common/Format.c index 7d6f3edb..ead65463 100644 --- a/src/Common/Format.c +++ b/src/Common/Format.c @@ -753,8 +753,8 @@ int FormatNoFs (HWND hwndDlg, unsigned __int64 startSector, __int64 num_sectors, unsigned __int64 nSecNo = startSector; int retVal = 0; DWORD err; - char temporaryKey[MASTER_KEYDATA_SIZE]; - char originalK2[MASTER_KEYDATA_SIZE]; + CRYPTOPP_ALIGN_DATA(16) char temporaryKey[MASTER_KEYDATA_SIZE]; + CRYPTOPP_ALIGN_DATA(16) char originalK2[MASTER_KEYDATA_SIZE]; LARGE_INTEGER startOffset; LARGE_INTEGER newOffset; |