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 f64d00d commit 47d7539Copy full SHA for 47d7539
ext/sodium/libsodium.c
@@ -1495,8 +1495,7 @@ PHP_FUNCTION(sodium_crypto_sign)
1495
zend_throw_exception(sodium_exception_ce, "internal error", 0);
1496
return;
1497
}
1498
- if (msg_signed_real_len < 0U || msg_signed_real_len >= SIZE_MAX ||
1499
- msg_signed_real_len > msg_signed_len) {
+ if (msg_signed_real_len >= SIZE_MAX || msg_signed_real_len > msg_signed_len) {
1500
zend_string_free(msg_signed);
1501
zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0);
1502
0 commit comments