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 2fa5592 commit 0f6d3dcCopy full SHA for 0f6d3dc
ext/sodium/libsodium.c
@@ -1842,7 +1842,7 @@ PHP_FUNCTION(sodium_crypto_aead_aes256gcm_decrypt)
1842
RETURN_THROWS();
1843
}
1844
msg_len = ciphertext_len;
1845
- if (msg_len == SIZE_MAX) {
+ if (msg_len >= ZSTR_MAX_LEN) {
1846
zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0);
1847
1848
@@ -1957,7 +1957,7 @@ PHP_FUNCTION(sodium_crypto_aead_aegis128l_decrypt)
1957
RETURN_FALSE;
1958
1959
1960
1961
1962
1963
0 commit comments