INT_MAX 31 Zend/zend_constants.h #define PHP_USER_CONSTANT INT_MAX /* a constant defined in user space */ INT_MAX 42 Zend/zend_range_check.h # define ZEND_LONG_INT_OVFL(zlong) UNEXPECTED((zlong) > (zend_long)INT_MAX) INT_MAX 54 Zend/zend_range_check.h #define ZEND_SIZE_T_INT_OVFL(size) UNEXPECTED((size) > (size_t)INT_MAX) INT_MAX 146 ext/bz2/bz2.c int to_read = (int)(remain <= INT_MAX ? remain : INT_MAX); INT_MAX 170 ext/bz2/bz2.c int to_write = (int)(remain <= INT_MAX ? remain : INT_MAX); INT_MAX 179 ext/calendar/julian.c if (yearl > INT_MAX || yearl < INT_MIN) { INT_MAX 4966 ext/date/php_date.c Z_TYPE_P(ht_entry) == IS_LONG && Z_LVAL_P(ht_entry) >= 0 && Z_LVAL_P(ht_entry) <= INT_MAX) { INT_MAX 1466 ext/gd/gd.c if (x_size <= 0 || y_size <= 0 || x_size >= INT_MAX || y_size >= INT_MAX) { INT_MAX 2096 ext/gd/gd.c if (x_size <= 0 || y_size <= 0 || x_size >= INT_MAX || y_size >= INT_MAX) { INT_MAX 60 ext/gd/gd_compat.c if(a > INT_MAX / b) { INT_MAX 370 ext/gd/libgd/gd_jpeg.c if (cinfo.image_height > INT_MAX) { INT_MAX 371 ext/gd/libgd/gd_jpeg.c php_gd_error_ex(E_WARNING, "gd-jpeg: warning: JPEG image height (%u) is greater than INT_MAX (%d) (and thus greater than gd can handle)", cinfo.image_height, INT_MAX); INT_MAX 374 ext/gd/libgd/gd_jpeg.c if (cinfo.image_width > INT_MAX) { INT_MAX 375 ext/gd/libgd/gd_jpeg.c php_gd_error_ex(E_WARNING, "gd-jpeg: warning: JPEG image width (%u) is greater than INT_MAX (%d) (and thus greater than gd can handle)", cinfo.image_width, INT_MAX); INT_MAX 26 ext/gd/libgd/gd_security.c if(a > INT_MAX / b) { INT_MAX 640 ext/hash/hash.c if (salt_len > INT_MAX - 4) { INT_MAX 33 ext/interbase/ibase_query.c #define ISC_LONG_MAX INT_MAX INT_MAX 1352 ext/mcrypt/mcrypt.c if (size <= 0 || size >= INT_MAX) { INT_MAX 1353 ext/mcrypt/mcrypt.c php_error_docref(NULL, E_WARNING, "Cannot create an IV with a size of less than 1 or greater than %d", INT_MAX); INT_MAX 990 ext/mysqli/mysqli_api.c if (uval > INT_MAX) { INT_MAX 81 ext/mysqlnd/mysqlnd_ps_codec.c if (uval > INT_MAX) { INT_MAX 79 ext/oci8/php_oci8_int.h #define PHP_OCI_MAX_DATA_SIZE INT_MAX INT_MAX 1941 ext/openssl/xp_ssl.c if (count > INT_MAX) { INT_MAX 1942 ext/openssl/xp_ssl.c count = INT_MAX; INT_MAX 76 ext/pcre/pcrelib/pcre_compile.c #define OFLOW_MAX (INT_MAX - 20) INT_MAX 1153 ext/pcre/pcrelib/pcre_compile.c if (s > INT_MAX / 10 - 1) /* Integer overflow */ INT_MAX 1220 ext/pcre/pcrelib/pcre_compile.c if (s > INT_MAX / 10 - 1) /* Integer overflow */ INT_MAX 6090 ext/pcre/pcrelib/pcre_compile.c (INT64_OR_DOUBLE)INT_MAX || INT_MAX 6164 ext/pcre/pcrelib/pcre_compile.c > (INT64_OR_DOUBLE)INT_MAX || INT_MAX 6799 ext/pcre/pcrelib/pcre_compile.c if (recno > INT_MAX / 10 - 1) /* Integer overflow */ INT_MAX 6939 ext/pcre/pcrelib/pcre_compile.c if (recno > INT_MAX / 10 - 1) /* Integer overflow */ INT_MAX 7434 ext/pcre/pcrelib/pcre_compile.c if (recno > INT_MAX / 10 - 1) /* Integer overflow */ INT_MAX 2754 ext/pcre/pcrelib/pcre_exec.c if (max == 0) max = INT_MAX; INT_MAX 2762 ext/pcre/pcrelib/pcre_exec.c if (max == 0) max = INT_MAX; INT_MAX 2898 ext/pcre/pcrelib/pcre_exec.c if (max == 0) max = INT_MAX; INT_MAX 2908 ext/pcre/pcrelib/pcre_exec.c if (max == 0) max = INT_MAX; INT_MAX 3125 ext/pcre/pcrelib/pcre_exec.c if (max == 0) max = INT_MAX; INT_MAX 3135 ext/pcre/pcrelib/pcre_exec.c if (max == 0) max = INT_MAX; INT_MAX 3344 ext/pcre/pcrelib/pcre_exec.c max = INT_MAX; INT_MAX 3352 ext/pcre/pcrelib/pcre_exec.c max = INT_MAX; INT_MAX 3380 ext/pcre/pcrelib/pcre_exec.c if (max == 0) max = INT_MAX; INT_MAX 3730 ext/pcre/pcrelib/pcre_exec.c max = INT_MAX; INT_MAX 3738 ext/pcre/pcrelib/pcre_exec.c max = INT_MAX; INT_MAX 3774 ext/pcre/pcrelib/pcre_exec.c if (max == 0) max = INT_MAX; INT_MAX 4096 ext/pcre/pcrelib/pcre_exec.c max = INT_MAX; INT_MAX 4103 ext/pcre/pcrelib/pcre_exec.c max = INT_MAX; INT_MAX 4131 ext/pcre/pcrelib/pcre_exec.c if (max == 0) max = INT_MAX; INT_MAX 5728 ext/pcre/pcrelib/pcre_exec.c if (max < INT_MAX) INT_MAX 205 ext/pcre/pcrelib/pcre_internal.h #define PCRE_INT16_MAX INT_MAX INT_MAX 214 ext/pcre/pcrelib/pcre_internal.h #define PCRE_INT32_MAX INT_MAX INT_MAX 393 ext/pcre/pcrelib/pcre_study.c d = INT_MAX; INT_MAX 351 ext/pcre/pcrelib/pcreposix.c if (nmatch > INT_MAX/(sizeof(int) * 3)) return REG_ESPACE; INT_MAX 1071 ext/pdo_pgsql/pgsql_driver.c } else if (ms_timeout > INT_MAX) { INT_MAX 1072 ext/pdo_pgsql/pgsql_driver.c php_error_docref(NULL, E_WARNING, "timeout was shrinked to %d", INT_MAX); INT_MAX 1073 ext/pdo_pgsql/pgsql_driver.c ms_timeout = INT_MAX; INT_MAX 249 ext/shmop/shmop.c if (count < 0 || start > (INT_MAX - count) || start + count > shmop->size) { INT_MAX 1475 ext/soap/php_http.c if (header_length < 0 || header_length >= INT_MAX) { INT_MAX 375 ext/sockets/conversions.c if (lval > INT_MAX || lval < INT_MIN) { INT_MAX 73 ext/sockets/sendrecvmsg.c if ((l) < INT_MIN && (l) > INT_MAX) { \ INT_MAX 859 ext/spl/spl_iterators.c } else if (max_depth > INT_MAX) { INT_MAX 860 ext/spl/spl_iterators.c max_depth = INT_MAX; INT_MAX 583 ext/sqlite3/sqlite3.c if ((sqlite3_column_int64(stmt, column)) >= INT_MAX || sqlite3_column_int64(stmt, column) <= INT_MIN) { INT_MAX 5940 ext/standard/basic_functions.c if (INT_MAX - str_len < ZEND_MMAP_AHEAD) { INT_MAX 552 ext/standard/file.c if (maxlen > INT_MAX) { INT_MAX 553 ext/standard/file.c php_error_docref(NULL, E_WARNING, "maxlen truncated from %pd to %d bytes", maxlen, INT_MAX); INT_MAX 554 ext/standard/file.c maxlen = INT_MAX; INT_MAX 89 ext/standard/formatted_print.c if(m_width > INT_MAX - *pos - 1) { INT_MAX 353 ext/standard/formatted_print.c if (num >= INT_MAX || num < 0) { INT_MAX 520 ext/standard/formatted_print.c php_error_docref(NULL, E_WARNING, "Width must be greater than zero and less than %d", INT_MAX); INT_MAX 539 ext/standard/formatted_print.c php_error_docref(NULL, E_WARNING, "Precision must be greater than zero and less than %d", INT_MAX); INT_MAX 401 ext/standard/math.c places = precision > INT_MAX ? INT_MAX : (int)precision; INT_MAX 57 ext/standard/pack.c if ((a) < 0 || ((INT_MAX - outputpos)/((int)b)) < (a)) { \ INT_MAX 710 ext/standard/pack.c if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { INT_MAX 889 ext/standard/pack.c v = ~INT_MAX; INT_MAX 117 ext/standard/password.c if (length > (INT_MAX / 3)) { INT_MAX 329 ext/standard/password.c if (ZSTR_LEN(buffer) > INT_MAX) { INT_MAX 329 ext/standard/php_fopen_wrapper.c dtablesize = INT_MAX; INT_MAX 446 ext/standard/streamsfuncs.c if (maxlen > INT_MAX) { INT_MAX 447 ext/standard/streamsfuncs.c php_error_docref(NULL, E_WARNING, "maxlen truncated from %pd to %d bytes", maxlen, INT_MAX); INT_MAX 448 ext/standard/streamsfuncs.c maxlen = INT_MAX; INT_MAX 1460 ext/standard/streamsfuncs.c if (csize > INT_MAX) { INT_MAX 1461 ext/standard/streamsfuncs.c php_error_docref(NULL, E_WARNING, "The chunk size cannot be larger than %d", INT_MAX); INT_MAX 2115 ext/standard/string.c if (offset < -INT_MAX || (size_t)(-offset) > ZSTR_LEN(haystack)) { INT_MAX 2183 ext/standard/string.c if (offset < -INT_MAX || (size_t)(-offset) > ZSTR_LEN(haystack)) { INT_MAX 2214 ext/standard/string.c if (offset < -INT_MAX || (size_t)(-offset) > ZSTR_LEN(haystack)) { INT_MAX 2289 ext/standard/string.c if (chunks > INT_MAX - 1) { INT_MAX 2293 ext/standard/string.c if (endlen !=0 && out_len > INT_MAX/endlen) { INT_MAX 2297 ext/standard/string.c if (out_len > INT_MAX - srclen - 1) { INT_MAX 5370 ext/standard/string.c if (num_pad_chars >= INT_MAX) { INT_MAX 46 ext/zip/lib/zip_get_num_files.c if (za->nentry > INT_MAX) { INT_MAX 933 main/fastcgi.c int out_len = tmp > INT_MAX ? INT_MAX : (int)tmp; INT_MAX 970 main/fastcgi.c int in_len = tmp > INT_MAX ? INT_MAX : (int)tmp; INT_MAX 226 main/php.h #ifndef INT_MAX INT_MAX 231 main/php.h #define INT_MIN (- INT_MAX - 1) INT_MAX 170 main/spprintf.c if (num >= INT_MAX / 10) { \ INT_MAX 1357 main/streams/streams.c ret = stream->chunk_size > INT_MAX ? INT_MAX : (int)stream->chunk_size; INT_MAX 1399 main/streams/streams.c if (0 < (b = PHPWRITE(p, MIN(mapped - bcount, INT_MAX)))) { INT_MAX 44 main/streams/xp_socket.c # define XP_SOCK_BUF_SIZE(sz) (((sz) > INT_MAX) ? INT_MAX : (int)(sz)) INT_MAX 258 main/streams/xp_socket.c return ((ret = send(sock->socket, buf, buflen > INT_MAX ? INT_MAX : (int)buflen, flags)) == SOCK_CONN_ERR) ? -1 : ret; INT_MAX 331 sapi/cgi/cgi_main.c int to_write = remaining > INT_MAX ? INT_MAX : (int)remaining; INT_MAX 514 sapi/cgi/cgi_main.c int to_read = (diff > INT_MAX) ? INT_MAX : (int)diff; INT_MAX 203 win32/php_stdint.h #define SIG_ATOMIC_MAX INT_MAX