Skip to content

Commit

Permalink
zero cwd buffer before passing to chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Nov 5, 2015
1 parent 435565a commit dea14fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Zend/zend_virtual_cwd.c
Expand Up @@ -459,6 +459,9 @@ CWD_API void virtual_cwd_startup(void) /* {{{ */
}
}
#else
#ifdef ZEND_WIN32
ZeroMemory(&cwd, sizeof(cwd));
#endif
result = getcwd(cwd, sizeof(cwd));
#endif
if (!result) {
Expand Down

0 comments on commit dea14fc

Please sign in to comment.