You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please consider adding a checking in common/fs/fat32.s2.c function fat32_init_context. The bpb.sectors_per_cluster is directly used without checking if it is one of the 8 values (1, 2, 4, 8, 16, 32, 64, and 128). If this value read from the hard drive is 0 which means the hard drive is corrupted, it will cause a divide-by-zero crash. A proper prompt should be given to the user that the hard drive is broken instead of using it directly.
Kind regards
The text was updated successfully, but these errors were encountered:
Please consider adding a checking in common/fs/fat32.s2.c function fat32_init_context. The bpb.sectors_per_cluster is directly used without checking if it is one of the 8 values (1, 2, 4, 8, 16, 32, 64, and 128). If this value read from the hard drive is 0 which means the hard drive is corrupted, it will cause a divide-by-zero crash. A proper prompt should be given to the user that the hard drive is broken instead of using it directly.
Kind regards
The text was updated successfully, but these errors were encountered: