mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
fix bug #69097
This commit is contained in:
@ -570,6 +570,11 @@ bool ECMADecryptor::SetPassword(std::wstring _password)
|
||||
|
||||
if (password.empty()) return false;
|
||||
|
||||
if (cryptData.keySize > 64 || cryptData.keySize < 1) return false;
|
||||
if (cryptData.hashSize > 64 || cryptData.hashSize < 1) return false;
|
||||
if (cryptData.blockSize > 64 || cryptData.blockSize < 1) return false;
|
||||
if (cryptData.saltSize > 64 || cryptData.saltSize < 1) return false;
|
||||
|
||||
_buf pPassword (password);
|
||||
_buf pSalt (cryptData.saltValue);
|
||||
_buf empty (NULL, 0, false);
|
||||
|
||||
Reference in New Issue
Block a user