Re: [PATCH v2 2/4] linux-user: Always use flexible arrays for dirent d_name

2021-11-14 Thread Philippe Mathieu-Daudé
On 11/14/21 11:35, Richard Henderson wrote: > We currently use a flexible array member for target_dirent, > but use incorrectly fixed length arrays for target_dirent64, > linux_dirent and linux_dirent64. > > This requires that we adjust the definition of the VFAT READDIR > ioctls which hard-code t

[PATCH v2 2/4] linux-user: Always use flexible arrays for dirent d_name

2021-11-14 Thread Richard Henderson
We currently use a flexible array member for target_dirent, but use incorrectly fixed length arrays for target_dirent64, linux_dirent and linux_dirent64. This requires that we adjust the definition of the VFAT READDIR ioctls which hard-code the 256 namelen size into the ioctl constant. Signed-off