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: b...@freebsd.org
          Reporter: r...@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.

Reply via email to