# HG changeset patch # User asl # Date 1106166429 0 # Node ID 17d9a15eab141b0ecb874c9eca3928bfcd08cb4b # Parent 3df9bc847a78fc3392bafedf364c51cb47bf1155 * src/fatfs_supp.c: Fixed FAT12/16 root dir size checking in read_next_raw_dentry - reported by Stephane Royo. diff --git a/packages/fs/fat/current/ChangeLog b/packages/fs/fat/current/ChangeLog --- a/packages/fs/fat/current/ChangeLog +++ b/packages/fs/fat/current/ChangeLog @@ -1,3 +1,9 @@ +2005-01-18 Savin Zlobec + + * src/fatfs_supp.c: + Fixed FAT12/16 root dir size checking in read_next_raw_dentry - + reported by Stephane Royo. + 2004-12-13 John Dallaway * tests/fileio1.c: Rename to fatfs1.c. eCos test names should be diff --git a/packages/fs/fat/current/src/fatfs_supp.c b/packages/fs/fat/current/src/fatfs_supp.c --- a/packages/fs/fat/current/src/fatfs_supp.c +++ b/packages/fs/fat/current/src/fatfs_supp.c @@ -1491,7 +1491,7 @@ read_next_raw_dentry(fatfs_disk_t // FAT12/16 root dir check if (0 == pos->cluster) { - if (pos->cluster_pos >= disk->fat_root_dir_nents) + if (pos->cluster_pos >= disk->fat_root_dir_size) err = EEOF; } else