We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d6f46d + b702eaf commit 39f1d25Copy full SHA for 39f1d25
win32/winutil.c
@@ -56,7 +56,7 @@ PHP_WINUTIL_API void php_win32_error_msg_free(char *msg)
56
57
int php_win32_check_trailing_space(const char * path, const size_t path_len)
58
{/*{{{*/
59
- if (path_len > MAXPATHLEN - 1) {
+ if (path_len == 0 || path_len > MAXPATHLEN - 1) {
60
return 1;
61
}
62
if (path) {
0 commit comments