fix dfs path name overflow. (#8305)

This commit is contained in:
geniusgogo
2023-11-28 17:16:21 +08:00
committed by GitHub
parent 249871cbbc
commit 74925f43ed
11 changed files with 116 additions and 105 deletions

View File

@@ -4874,7 +4874,7 @@ struct libc_dirent {
off_t d_off;
unsigned short d_reclen;
unsigned char d_type;
char d_name[256];
char d_name[DIRENT_NAME_MAX];
};
sysret_t sys_getdents(int fd, struct libc_dirent *dirp, size_t nbytes)