Merge branch 'js/mingw-needs-hiding-fix'
Fix for a (rather old) buffer-overrun bug. * js/mingw-needs-hiding-fix: mingw: avoid a buffer overrun in `needs_hiding()`
This commit is contained in:
commit
f2db52c46b
@ -363,6 +363,8 @@ static inline int needs_hiding(const char *path)
|
||||
/* ignore trailing slashes */
|
||||
if (*path)
|
||||
basename = path;
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
if (hide_dotfiles == HIDE_DOTFILES_TRUE)
|
||||
|
Loading…
Reference in New Issue
Block a user