We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bcd439 commit 72dbb7fCopy full SHA for 72dbb7f
ext/curl/interface.c
@@ -3529,6 +3529,10 @@ PHP_FUNCTION(curl_escape)
3529
RETURN_FALSE;
3530
}
3531
3532
+ if (ZEND_SIZE_T_INT_OVFL(str_len)) {
3533
+ RETURN_FALSE;
3534
+ }
3535
+
3536
if ((res = curl_easy_escape(ch->cp, str, str_len))) {
3537
RETVAL_STRING(res);
3538
curl_free(res);
@@ -3556,7 +3560,7 @@ PHP_FUNCTION(curl_unescape)
3556
3560
3557
3561
3558
3562
3559
- if (str_len > INT_MAX) {
3563
3564
3565
3566
0 commit comments