From 1cce8a3fd4de339002c756b920bbddde497b9f78 Mon Sep 17 00:00:00 2001 From: yl194034 Date: Wed, 23 May 2007 22:18:37 -0700 Subject: 6466433 Default EFI slice table leaves one sector unused. 6474622 auto configure to a EFI labeled lun should generate a whole hog partition table 6537609 validate64 function reads past the end of efi->parts --- usr/src/cmd/fmthard/fmthard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/src/cmd/fmthard') diff --git a/usr/src/cmd/fmthard/fmthard.c b/usr/src/cmd/fmthard/fmthard.c index 155199bed2..4d24e712dd 100644 --- a/usr/src/cmd/fmthard/fmthard.c +++ b/usr/src/cmd/fmthard/fmthard.c @@ -31,7 +31,7 @@ #pragma ident "%Z%%M% %I% %E% SMI" /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -824,7 +824,7 @@ fmthard: Partition %d specified as %lld sectors starting at %lld\n\ if (efi->efi_parts[i].p_tag != V_BACKUP && efi->efi_parts[i].p_size != fullsz) { - for (j = 0; j < V_NUMPAR; j++) { + for (j = 0; j < efi->efi_nparts; j++) { if (efi->efi_parts[j].p_size == fullsz) continue; isize = efi->efi_parts[i].p_size; -- cgit v1.2.3