Re: [PATCH v3] vfat: don't read garbage after last dirent

2019-02-13 Thread OGAWA Hirofumi
Matteo Croce writes: > The FAT32 File System Specification[1] states that: > > If DIR_Name[0] == 0x00, then the directory entry is free, and there > are no allocated directory entries after this one. > > The special 0 value, indicates to FAT file system driver code that > the rest

[PATCH v3] vfat: don't read garbage after last dirent

2019-01-31 Thread Matteo Croce
The FAT32 File System Specification[1] states that: If DIR_Name[0] == 0x00, then the directory entry is free, and there are no allocated directory entries after this one. The special 0 value, indicates to FAT file system driver code that the rest of the entries in this directory d