mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
Fix for bug #72513
This commit is contained in:
parent
0ca1698cf9
commit
a099545bec
@ -1190,7 +1190,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
|
||||
int add_slash;
|
||||
void *tmp;
|
||||
|
||||
if (path_length == 0 || path_length >= MAXPATHLEN-1) {
|
||||
if (path_length <= 0 || path_length >= MAXPATHLEN-1) {
|
||||
#ifdef TSRM_WIN32
|
||||
# if _MSC_VER < 1300
|
||||
errno = EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user