From 1d90e269afc22a6d75affcfa622f167d4c18c03a Mon Sep 17 00:00:00 2001 From: lulf Date: Mon, 9 Feb 2009 21:34:06 +0000 Subject: - Sanitize disk parameters retrieved from GEOM, as they are not guaranteed to have sane values. It caused sysinstall to crash when installing on certain SD cards. Discussed with: marcel --- lib/libdisk/open_disk.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/libdisk/open_disk.c b/lib/libdisk/open_disk.c index 6ffe88d..6cc9acb 100644 --- a/lib/libdisk/open_disk.c +++ b/lib/libdisk/open_disk.c @@ -127,6 +127,9 @@ Int_Open_Disk(const char *name, char *conftxt) name, a, b, line); } + /* Sanitize the parameters. */ + Sanitize_Bios_Geom(d); + /* * Calculate the number of cylinders this disk must have. If we have * an obvious insanity, we set the number of cylinders to zero. -- cgit v1.1