[Bug 258961] g_label_msdosfs_taste() can loop infinitely if FAT32 disk image is corrupt
Date: Wed, 06 Oct 2021 09:59:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258961
Bug ID: 258961
Summary: g_label_msdosfs_taste() can loop infinitely if FAT32
disk image is corrupt
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: rtm@lcs.mit.edu
The g_label_msdosfs_taste() FAT32 path reads fat_BytesPerSector from
the disk image and then executes
for (offset = fat_BytesPerSector * fat_FirstDataSector;;
offset += fat_BytesPerSector) {
If fat_BytesPerSector is zero, this never make progress, and
never finishes.
--
You are receiving this mail because:
You are the assignee for the bug.