Merge branch 'fix/cid_481432_overflowed_constant' into 'master'

fix(fatfs): fix overflowed constant issue observed in mount_volume of ff.c

See merge request espressif/esp-idf!41542
This commit is contained in:
Sonika Rathi
2025-09-16 20:58:36 +08:00

View File

@@ -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 */