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
Is this a valid FAT filesystem or a manually crafted data with a goal to crash the lib?
I can see multiple places where overflow could happen and I believe it would be better to just return errors in such cases but I also believe those cases should not occur in real world normally.
One option to handle this would be changing all multiplications to checked_mul() and somehow pass the error to the FileSystem::new function but I don't like how it would make all multiplications ugly
Manually crafted, but I figured that bad behavior due to corrupted/malicious filesystems are in scope, you wouldn't want some OS to crash just because it's trying to read a filesystem with bad data.
Unfortunately, yeah, I'm not aware of any cleaner way than manually doing checked operations and propagating any errors upwards.
This panics with a multiply overflow error.
The text was updated successfully, but these errors were encountered: