We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b849d9 + f64d00d commit cb39422Copy full SHA for cb39422
ext/sodium/libsodium.c
@@ -1495,7 +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 ||
+ if (msg_signed_real_len < 0U || msg_signed_real_len >= SIZE_MAX ||
1499
msg_signed_real_len > msg_signed_len) {
1500
zend_string_free(msg_signed);
1501
zend_throw_exception(sodium_exception_ce, "arithmetic overflow", 0);
0 commit comments