mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/disk/i386/pc/biosdisk.c: Check disk size sanity.
This commit is contained in:
1 parent
f1959b1695
commit
4200ad44fe
2 files changed
+9
No files matched your search
@@ -419,6 +419,11 @@ grub_biosdisk_open (const char *name, grub_disk_t disk)
|
||||
}
|
||||
}
|
||||
|
||||
if (data->sectors == 0)
|
||||
data->sectors = 63;
|
||||
if (data->heads == 0)
|
||||
data->heads = 255;
|
||||
|
||||
if (! total_sectors)
|
||||
total_sectors = data->cylinders * data->heads * data->sectors;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user