/php-src/main/ |
H A D | fopen_wrappers.c | 147 char path_tmp[MAXPATHLEN + 1]; 161 if (path_len > (MAXPATHLEN - 1)) { 178 char buf[MAXPATHLEN]; 503 char trypath[MAXPATHLEN]; 556 …if (filename_length > (MAXPATHLEN - 2) || (end-ptr) > MAXPATHLEN || (end-ptr) + 1 + filename_lengt… 567 …if (filename_length > (MAXPATHLEN - 2) || len > MAXPATHLEN || len + 1 + filename_length + 1 >= MAX… 650 char trypath[MAXPATHLEN]; 711 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) { 784 char cwd[MAXPATHLEN]; 817 copy_len = path_len > MAXPATHLEN - 1 ? MAXPATHLEN - 1 : path_len; [all …]
|
H A D | php_open_temporary_file.c | 97 wchar_t *cwdw, *random_prefix_w, pathw[MAXPATHLEN]; in php_do_open_temporary_file() 99 char opened_path[MAXPATHLEN]; in php_do_open_temporary_file() 106 char cwd[MAXPATHLEN]; in php_do_open_temporary_file() 128 if (!VCWD_GETCWD(cwd, MAXPATHLEN)) { in php_do_open_temporary_file() 164 …if (snprintf(opened_path, MAXPATHLEN, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, random_prefix… in php_do_open_temporary_file() 184 if (!opened_path || opened_path_len >= MAXPATHLEN) { in php_do_open_temporary_file() 264 wchar_t sTemp[MAXPATHLEN]; in php_get_temporary_directory() 266 size_t len = GetTempPathW(MAXPATHLEN, sTemp); in php_get_temporary_directory()
|
H A D | php_ini.c | 440 char phprc_path[MAXPATHLEN]; in php_init_config() 481 search_path_size = MAXPATHLEN * 4 + strlen(env_location) + 3 + 1; in php_init_config() 522 default_location = (char *) emalloc(MAXPATHLEN + 1); in php_init_config() 524 if (0 < GetWindowsDirectory(default_location, MAXPATHLEN)) { in php_init_config() 531 if (0 < GetSystemWindowsDirectory(default_location, MAXPATHLEN)) { in php_init_config() 636 char ini_file[MAXPATHLEN]; in php_init_config() 672 snprintf(ini_file, MAXPATHLEN, "%s%s", debpath, namelist[i]->d_name); in php_init_config() 762 char ini_file[MAXPATHLEN]; in php_parse_user_ini_file() 828 char path_bak[MAXPATHLEN]; 833 if (path_len >= MAXPATHLEN) { [all …]
|
H A D | php.h | 247 #ifndef MAXPATHLEN 250 # define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro 252 # define MAXPATHLEN PATH_MAX 254 # define MAXPATHLEN MAX_PATH 256 # define MAXPATHLEN 256 /* Should be safe for any weird systems that do not define it */
|
/php-src/ext/standard/ |
H A D | link.c | 61 char buff[MAXPATHLEN]; in PHP_FUNCTION() 72 ret = php_sys_readlink(link, buff, MAXPATHLEN-1); in PHP_FUNCTION() 129 char source_p[MAXPATHLEN]; in PHP_FUNCTION() 130 char dest_p[MAXPATHLEN]; in PHP_FUNCTION() 131 char dirname[MAXPATHLEN]; in PHP_FUNCTION() 187 char source_p[MAXPATHLEN]; in PHP_FUNCTION() 188 char dest_p[MAXPATHLEN]; in PHP_FUNCTION()
|
H A D | dir.c | 284 char path[MAXPATHLEN]; in PHP_FUNCTION() 290 ret = VCWD_GETCWD(path, MAXPATHLEN); in PHP_FUNCTION() 347 char cwd[MAXPATHLEN]; in PHP_FUNCTION() 348 char work_pattern[MAXPATHLEN]; in PHP_FUNCTION() 366 if (pattern_len >= MAXPATHLEN) { in PHP_FUNCTION() 367 …docref(NULL, E_WARNING, "Pattern exceeds the maximum allowed length of %d characters", MAXPATHLEN); in PHP_FUNCTION() 378 result = VCWD_GETCWD(cwd, MAXPATHLEN); in PHP_FUNCTION() 389 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern); in PHP_FUNCTION()
|
H A D | dl.c | 56 if (filename_len >= MAXPATHLEN) { in PHP_FUNCTION() 57 …ocref(NULL, E_WARNING, "Filename exceeds the maximum allowed length of %d characters", MAXPATHLEN); in PHP_FUNCTION()
|
/php-src/win32/ |
H A D | param.h | 13 #ifndef MAXPATHLEN 15 #define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro
|
H A D | glob.c | 164 Char *bufnext, *bufend, patbuf[MAXPATHLEN]; in glob() 185 bufend = bufnext + MAXPATHLEN - 1; in glob() 241 Char patbuf[MAXPATHLEN]; in globexp2() 420 Char *bufnext, patbuf[MAXPATHLEN]; in glob0() 513 Char pathbuf[MAXPATHLEN]; 518 return(glob2(pathbuf, pathbuf+MAXPATHLEN-1, 519 pathbuf, pathbuf+MAXPATHLEN-1, 610 char buf[MAXPATHLEN]; in glob3() 794 char buf[MAXPATHLEN]; in g_opendir() 811 char buf[MAXPATHLEN]; in g_lstat() [all …]
|
H A D | registry.c | 225 char tmp_buf[MAXPATHLEN], *cwd; in UpdateIniFromRegistry() 229 if (!VCWD_GETCWD(tmp_buf, MAXPATHLEN)) { in UpdateIniFromRegistry() 288 DWORD buflen = MAXPATHLEN; in GetIniPathFromRegistry() 289 reg_location = emalloc(MAXPATHLEN+1); in GetIniPathFromRegistry()
|
H A D | ioutil.h | 66 #if !defined(MAXPATHLEN) || MAXPATHLEN < PHP_WIN32_IOUTIL_MAXPATHLEN 67 # undef MAXPATHLEN 68 # define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro 805 if (!ret_buf || ret_buf_len >= buf_len || ret_buf_len >= MAXPATHLEN) { in php_win32_ioutil_readlink()
|
/php-src/ext/phar/tests/ |
H A D | bug74991.phpt | 13 …_path 1 byte larger (=OVERFLOW) than the MAXPATHLEN, the include_path will then be truncated to 40… 14 $p['some/file'] = "<?php const MAXPATHLEN = 4096, OVERFLOW = 1, PATH = 'path'; set_include_path(str…
|
/php-src/ext/dba/ |
H A D | dba_dbm.c | 39 snprintf(buf, MAXPATHLEN, "%s" extension, ZSTR_VAL(info->path)); \ 40 buf[MAXPATHLEN-1] = '\0'; \ 56 char buf[MAXPATHLEN]; in DBA_OPEN_FUNC() 64 char buf[MAXPATHLEN]; in DBA_OPEN_FUNC()
|
/php-src/ext/opcache/ |
H A D | ZendAccelerator.h | 77 # ifndef MAXPATHLEN 79 # define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro 83 # ifndef MAXPATHLEN 84 # define MAXPATHLEN 4096 macro 227 char _key[MAXPATHLEN * 8];
|
H A D | zend_accelerator_blacklist.c | 242 char buf[MAXPATHLEN + 1], real_path[MAXPATHLEN + 1], *blacklist_path = NULL; in zend_accel_blacklist_loadone() 261 while (fgets(buf, MAXPATHLEN, fp) != NULL) { in zend_accel_blacklist_loadone()
|
H A D | shared_alloc_win32.c | 74 static char newname[MAXPATHLEN + 1 + 32 + 1 + 20 + 1 + 32 + 1]; in create_name_with_username() 76 p += strlcpy(newname, name, MAXPATHLEN + 1); in create_name_with_username()
|
H A D | shared_alloc_mmap.c | 63 char buffer[MAXPATHLEN]; in find_prefered_mmap_base() 70 while (fgets(buffer, MAXPATHLEN, f) && sscanf(buffer, "%lx-%lx", &start, &end) == 2) { in find_prefered_mmap_base()
|
/php-src/Zend/ |
H A D | zend_virtual_cwd.c | 177 char cwd[MAXPATHLEN]; in virtual_cwd_main_cwd_init() 521 assert(i < MAXPATHLEN); in tsrm_realpath_r() 541 assert(i < MAXPATHLEN); in tsrm_realpath_r() 545 assert(i < MAXPATHLEN); in tsrm_realpath_r() 859 if(i + j >= MAXPATHLEN - 1) { in tsrm_realpath_r() 918 if (i + j >= MAXPATHLEN-1) { in tsrm_realpath_r() 1010 char resolved_path[MAXPATHLEN]; in virtual_file_ex() 1249 char cwd[MAXPATHLEN]; in virtual_realpath() 1268 size_t len = new_state.cwd_length>MAXPATHLEN-1?MAXPATHLEN-1:new_state.cwd_length; in virtual_realpath() 1720 char cwd[MAXPATHLEN]; in tsrm_realpath() [all …]
|
H A D | zend_virtual_cwd.h | 39 #ifndef MAXPATHLEN 42 # define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN macro 44 # define MAXPATHLEN PATH_MAX macro 46 # define MAXPATHLEN MAX_PATH macro 48 # define MAXPATHLEN 256 macro
|
/php-src/ext/session/ |
H A D | mod_files.c | 154 char buf[MAXPATHLEN]; in ps_files_open() 174 …e path. Too short session ID, invalid save_path or path length exceeds %d characters", MAXPATHLEN); in ps_files_open() 285 char buf[MAXPATHLEN]; in ps_files_cleanup_dir() 297 if (ZSTR_LEN(dirname) >= MAXPATHLEN) { in ps_files_cleanup_dir() 313 if (entry_len + ZSTR_LEN(dirname) + 2 < MAXPATHLEN) { in ps_files_cleanup_dir() 337 char buf[MAXPATHLEN]; in ps_files_key_exists() 564 char buf[MAXPATHLEN]; in PS_UPDATE_TIMESTAMP_FUNC() 595 char buf[MAXPATHLEN]; in PS_DESTROY_FUNC()
|
/php-src/ext/zip/ |
H A D | php_zip.c | 134 char file_dirname[MAXPATHLEN]; in php_zip_extract_file() 218 } else if (len > MAXPATHLEN) { in php_zip_extract_file() 290 char resolved_path[MAXPATHLEN]; in php_zip_add_file() 620 char cwd[MAXPATHLEN]; in php_zip_glob() 621 char work_pattern[MAXPATHLEN]; in php_zip_glob() 628 if (pattern_len >= MAXPATHLEN) { in php_zip_glob() 725 char cwd[MAXPATHLEN]; in php_zip_pcre() 726 char work_path[MAXPATHLEN]; in php_zip_pcre() 772 char fullpath[MAXPATHLEN]; in php_zip_pcre() 1177 char resolved_path[MAXPATHLEN + 1]; in PHP_FUNCTION() [all …]
|
H A D | zip_stream.c | 126 char file_dirname[MAXPATHLEN]; in php_zip_ops_stat() 149 if (path_len >= MAXPATHLEN) { in php_zip_ops_stat() 285 char file_dirname[MAXPATHLEN]; in php_stream_zip_opener() 311 if (path_len >= MAXPATHLEN || mode[0] != 'r') { in php_stream_zip_opener()
|
/php-src/ext/gettext/ |
H A D | gettext.c | 183 char *retval, dir_name[MAXPATHLEN]; in PHP_FUNCTION() 201 } else if (!VCWD_GETCWD(dir_name, MAXPATHLEN)) { in PHP_FUNCTION()
|
/php-src/main/streams/ |
H A D | plain_wrapper.c | 1104 char realpath[MAXPATHLEN]; in _php_stream_fopen() 1390 char buf[MAXPATHLEN]; in php_plain_files_mkdir() 1609 char trypath[MAXPATHLEN]; in _php_stream_fopen_with_path() 1666 if (snprintf(trypath, MAXPATHLEN, "%s%s", cwd, filename) >= MAXPATHLEN) { in _php_stream_fopen_with_path() 1667 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", cwd, filename, MAXPATHLEN); in _php_stream_fopen_with_path() 1721 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) { in _php_stream_fopen_with_path() 1722 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", ptr, filename, MAXPATHLEN); in _php_stream_fopen_with_path()
|
/php-src/sapi/fuzzer/ |
H A D | fuzzer-execute-common.h | 146 char path[MAXPATHLEN];
|