]> granicus.if.org Git - php/commitdiff
Fix for bug #72513
authorStanislav Malyshev <stas@php.net>
Wed, 13 Jul 2016 04:52:27 +0000 (21:52 -0700)
committerStanislav Malyshev <stas@php.net>
Wed, 13 Jul 2016 04:52:27 +0000 (21:52 -0700)
Zend/zend_virtual_cwd.c

index c8e42ddc60baef619d555f474d631dda5cc691e1..84a3508ded09dbfdc7a91a28968948d81bb99e26 100644 (file)
@@ -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;