Skip to content

Commit

Permalink
Merge pull request #2371 from dscho/fix-needs-hiding-buffer-overrun
Browse files Browse the repository at this point in the history
Avoid a buffer overrun in `needs_hiding()`
  • Loading branch information
dscho committed Oct 30, 2019
2 parents 602a71e + 39502d2 commit 280b79c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compat/mingw.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ static inline int needs_hiding(const char *path)
/* ignore trailing slashes */
if (*path)
basename = path;
else
break;
}

if (hide_dotfiles == HIDE_DOTFILES_TRUE)
Expand Down

0 comments on commit 280b79c

Please sign in to comment.