Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup_current_filesystem: fail if name_max is 0
Add error handling to the USE_READDIR_R code paths that set name_max from struct statfs or statvfs; if the determined name_max == 0 then return an error. Avoids a crash in tree_dir_next_posix() when the calculation of dirent_size from name_max is too small for the memory allocated for struct dirent. This may fix Github issue #1149 This may fix NetBSD PR https://gnats.netbsd.org/56080
- Loading branch information