/php-src/ext/standard/tests/array/ |
H A D | array_fill_error2.phpt | 9 // calling array_fill() with 'count' larger than INT_MAX 16 // calling array_fill() with 'count' equals to INT_MAX
|
/php-src/Zend/ |
H A D | zend_range_check.h | 42 # define ZEND_LONG_INT_OVFL(zlong) UNEXPECTED((zlong) > (zend_long)INT_MAX) 54 #define ZEND_SIZE_T_INT_OVFL(size) UNEXPECTED((size) > (size_t)INT_MAX)
|
/php-src/ext/calendar/ |
H A D | gregor.c | 156 if (temp < 0 || (temp / DAYS_PER_400_YEARS) > INT_MAX) { in SdnToGregorian() 166 if (century > ((INT_MAX / 100) - (temp / DAYS_PER_4_YEARS))) { in SdnToGregorian()
|
H A D | julian.c | 179 if (yearl > INT_MAX || yearl < INT_MIN) { in SdnToJulian()
|
/php-src/ext/gd/libgd/ |
H A D | gd_security.c | 27 if(a > INT_MAX / b) { in overflow2()
|
H A D | gd_jpeg.c | 384 if (cinfo.image_height > INT_MAX) { in gdImageCreateFromJpegCtxEx() 385 … is greater than INT_MAX (%d) (and thus greater than gd can handle)", cinfo.image_height, INT_MAX); in gdImageCreateFromJpegCtxEx() 388 if (cinfo.image_width > INT_MAX) { in gdImageCreateFromJpegCtxEx() 389 …) is greater than INT_MAX (%d) (and thus greater than gd can handle)", cinfo.image_width, INT_MAX); in gdImageCreateFromJpegCtxEx()
|
/php-src/ext/gd/ |
H A D | gd_compat.c | 17 if(a > INT_MAX / b) { in overflow2()
|
H A D | gd.c | 679 if (x_size <= 0 || x_size >= INT_MAX) { in PHP_FUNCTION() 684 if (y_size <= 0 || y_size >= INT_MAX) { in PHP_FUNCTION() 1307 if (x_size <= 0 || x_size >= INT_MAX) { in PHP_FUNCTION() 1312 if (y_size <= 0 || y_size >= INT_MAX) { in PHP_FUNCTION() 1768 if (quality < INT_MIN || quality > INT_MAX) { in _php_image_output() 3629 zend_argument_value_error(3, "must be between 0 and %d", INT_MAX); in php_image_filter_scatter() 3634 zend_argument_value_error(4, "must be between 0 and %d", INT_MAX); in php_image_filter_scatter() 3958 zend_argument_value_error(2, "must be between 1 and %d", INT_MAX); in PHP_FUNCTION() 4021 if (affine[i] < INT_MIN || affine[i] > INT_MAX) { in PHP_FUNCTION() 4028 if (affine[i] < INT_MIN || affine[i] > INT_MAX) { in PHP_FUNCTION() [all …]
|
/php-src/ext/json/ |
H A D | json.c | 293 if (depth > INT_MAX) { in PHP_FUNCTION() 294 zend_argument_value_error(3, "must be less than %d", INT_MAX); in PHP_FUNCTION() 344 if (depth > INT_MAX) { in PHP_FUNCTION() 345 zend_argument_value_error(2, "must be less than %d", INT_MAX); in PHP_FUNCTION()
|
/php-src/ext/standard/ |
H A D | formatted_print.c | 97 if(m_width > INT_MAX - *pos - 1) { in php_sprintf_appendstring() 365 if (num >= INT_MAX || num < 0) { in php_sprintf_getnumber() 385 zend_value_error("Argument number specifier must be greater than zero and less than %d", INT_MAX); in php_sprintf_get_argnum() 529 if (Z_LVAL_P(tmp) < 0 || Z_LVAL_P(tmp) > INT_MAX) { in php_formatted_print() 530 zend_value_error("Width must be greater than zero and less than %d", INT_MAX); in php_formatted_print() 538 zend_value_error("Width must be greater than zero and less than %d", INT_MAX); in php_formatted_print() 573 if (Z_LVAL_P(tmp) < -1 || Z_LVAL_P(tmp) > INT_MAX) { in php_formatted_print() 574 zend_value_error("Precision must be between -1 and %d", INT_MAX); in php_formatted_print() 582 zend_value_error("Precision must be greater than zero and less than %d", INT_MAX); in php_formatted_print()
|
H A D | pack.c | 45 if ((a) < 0 || ((INT_MAX - outputpos)/((int)b)) < (a)) { \ 352 if (currentarg > INT_MAX - arg) { in PHP_FUNCTION() 755 if (errno || tmp < INT_MIN || tmp > INT_MAX) { in PHP_FUNCTION() 879 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION() 981 if (size > INT_MAX / 2) { in PHP_FUNCTION() 983 zend_argument_value_error(1, "repeater must be less than or equal to %d", INT_MAX / 2); in PHP_FUNCTION()
|
/php-src/ext/gd/tests/ |
H A D | bug77479.phpt | 18 Warning: imagewbmp():%S %croduct of memory allocation multiplication would exceed INT_MAX, failing …
|
H A D | libgd00101.phpt | 15 Warning: imagecreatefromgd(): Product of memory allocation multiplication would exceed INT_MAX, fai…
|
H A D | bug77272.phpt | 19 Warning: imagescale():%S %croduct of memory allocation multiplication would exceed INT_MAX, failing…
|
H A D | imageloadfont_invalid.phpt | 20 Warning: imageloadfont(): Product of memory allocation multiplication would exceed INT_MAX, failing…
|
H A D | bug81739.phpt | 18 Warning: imageloadfont(): %croduct of memory allocation multiplication would exceed INT_MAX, failin…
|
H A D | createfromwbmp2.phpt | 46 Warning: imagecreatefromwbmp(): Product of memory allocation multiplication would exceed INT_MAX, f…
|
H A D | createfromwbmp2_extern.phpt | 46 Warning: imagecreatefromwbmp(): %croduct of memory allocation multiplication would exceed INT_MAX, …
|
H A D | bug66356.phpt | 49 Warning: imagecrop(): %croduct of memory allocation multiplication would exceed INT_MAX, failing op…
|
H A D | bug72339.phpt | 43 Warning: imagecreatefromgd2(): Product of memory allocation multiplication would exceed INT_MAX, fa…
|
/php-src/main/ |
H A D | php.h | 221 #ifndef INT_MAX 222 #define INT_MAX 2147483647 macro 226 #define INT_MIN (- INT_MAX - 1)
|
/php-src/ext/bz2/ |
H A D | bz2.c | 75 int to_read = (int)(remain <= INT_MAX ? remain : INT_MAX); in php_bz2iop_read() 105 int to_write = (int)(remain <= INT_MAX ? remain : INT_MAX); in php_bz2iop_write()
|
/php-src/ext/bcmath/ |
H A D | bcmath.c | 80 if (tmp < 0 || tmp > INT_MAX) { in ZEND_GET_MODULE() 153 if (UNEXPECTED(scale < 0 || scale > INT_MAX)) { in bcmath_check_scale() 154 zend_argument_value_error(arg_num, "must be between 0 and %d", INT_MAX); in bcmath_check_scale() 859 # define CHECK_RET_SCALE_OVERFLOW(scale, origin_scale) (scale > INT_MAX) 861 # define CHECK_RET_SCALE_OVERFLOW(scale, origin_scale) (scale > INT_MAX || scale < origin_scale) 863 #define CHECK_SCALE_OVERFLOW(scale) (scale > INT_MAX) 1119 if (UNEXPECTED(*scale > INT_MAX || *scale < n1_full_scale)) { in bcmath_number_pow_internal() 1253 zend_value_error("scale must be between 0 and %d", INT_MAX); in bcmath_number_do_operation() 1347 zend_value_error("scale must be between 0 and %d", INT_MAX); in bcmath_number_compare() 1383 zend_argument_value_error(arg_num, "must be between 0 and %d", INT_MAX); in bc_num_from_obj_or_str_or_long_with_err()
|
/php-src/win32/ |
H A D | select.c | 44 if (max_fd > (php_socket_t)INT_MAX) { in php_select()
|
/php-src/ext/dom/ |
H A D | html5_parser.c | 209 if (UNEXPECTED(local_name_length >= INT_MAX || value_length >= INT_MAX)) { in lexbor_libxml2_bridge_convert() 272 if (UNEXPECTED(data_length >= INT_MAX)) { in lexbor_libxml2_bridge_convert()
|