We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f45262 commit 74d7f1dCopy full SHA for 74d7f1d
ext/sodium/libsodium.c
@@ -1670,7 +1670,7 @@ PHP_FUNCTION(sodium_crypto_pwhash_scryptsalsa208sha256)
1670
&passwd, &passwd_len,
1671
&salt, &salt_len,
1672
&opslimit, &memlimit) == FAILURE ||
1673
- hash_len <= 0 || hash_len >= SIZE_MAX ||
+ hash_len <= 0 || hash_len >= SIZE_MAX || hash_len > 0x1fffffffe0ULL ||
1674
opslimit <= 0 || memlimit <= 0 || memlimit > SIZE_MAX) {
1675
zend_throw_exception(sodium_exception_ce, "invalid parameters", 0);
1676
return;
0 commit comments