com php-src: Fix for bug #72513: Zend/zend_virtual_cwd.c
| From: | Ferenc Kovacs | Date: | Thu, 21 Jul 2016 00:08:07 +0000 |
| Subject: | com php-src: Fix for bug #72513: Zend/zend_virtual_cwd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93282@lists.php.net to get a copy of this message | ||
Commit: 44d96c42d220072995ea5074230ed91f1c8c36e4
Author: Stanislav Malyshev <stas@php.net> Tue, 12 Jul 2016 21:52:27 -0700
Committer: Ferenc Kovacs <tyra3l@gmail.com> Thu, 21 Jul 2016 02:08:07 +0200
Parents: 7fa06d4d7568d52706ac2a1ed431dda7f1ad68b4
Branches: PHP-5.6.24
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=44d96c42d220072995ea5074230ed91f1c8c36e4
Log:
Fix for bug #72513
Bugs:
https://bugs.php.net/72513
Changed paths:
M Zend/zend_virtual_cwd.c
Diff:
diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c
index a143842..5a5bcce 100644
--- a/Zend/zend_virtual_cwd.c
+++ b/Zend/zend_virtual_cwd.c
@@ -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;