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

2018-12-13 Thread OGAWA Hirofumi
Matteo Croce writes: > The FAT32 File System Specification[1] states: > > 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 t

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

2018-12-08 Thread Matteo Croce
On Fri, Dec 7, 2018 at 1:34 AM Matteo Croce wrote: > the rest of the entries in this directory do notneed to be examined I made a small typo, it should be "do not need" Regards, -- Matteo Croce per aspera ad upstream

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

2018-12-06 Thread Matteo Croce
The FAT32 File System Specification[1] states: 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 do not