mirror of https://github.com/openssl/openssl.git
GH608: Ensure 64-bit shift no matter sizeof(long)
Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Emilia Käsper <emilia@openssl.org>
This commit is contained in:
parent
542dfaf308
commit
19f7130beb
|
|
@ -228,7 +228,7 @@ int EVP_PBE_scrypt(const char *pass, size_t passlen,
|
|||
*/
|
||||
|
||||
if (16 * r <= LOG2_UINT64_MAX) {
|
||||
if (N >= (1UL << (16 * r)))
|
||||
if (N >= (((uint64_t)1) << (16 * r)))
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue