Opened 3 years ago

#17060 new bug

GUI apps crash if a storage device reports its capacity and block size to be 0

Reported by: dasebek Owned by:
Priority: normal Milestone: Unscheduled
Component: Drivers/Disk/SCSI Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

If a hard drive reports both its capacity and its block size to be 0, or if the capacity is not detected and scsi_periph/block.cpp implicitly sets both values to 0, GUI apps like DriveSetup and DiskProbe cause kernel panics when trying to access this drive.

For some reason, it seems that empty CD drives are not affected by this bug. If CD drives contain no media and report the capacity and/or block size to be 0, they can still be listed in DriveSetup and accessed by DiskProbe.

This bug seems to affect both R1/beta2 and the nightlies (hrev55184), at least the x86_64 versions.

Change History (0)

Note: See TracTickets for help on using tickets.