mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-03 02:20:57 +02:00
fix(fatfs): fix overflowed constant issue observed in mount_volume of ff.c
This commit is contained in:
@@ -3448,7 +3448,7 @@ static FRESULT mount_volume ( /* FR_OK(0): successful, !=0: an error occurred */
|
||||
|
||||
/* Find an FAT volume on the hosting drive */
|
||||
fmt = find_volume(fs, LD2PT(vol));
|
||||
if (fmt == 4) return FR_DISK_ERR; /* An error occurred in the disk I/O layer */
|
||||
if (fmt == 4 || fs->winsect == 0xFFFFFFFF) return FR_DISK_ERR; /* An error occurred in the disk I/O layer */
|
||||
if (fmt >= 2) return FR_NO_FILESYSTEM; /* No FAT volume is found */
|
||||
bsect = fs->winsect; /* Volume offset in the hosting physical drive */
|
||||
|
||||
|
Reference in New Issue
Block a user