diff options
author | 2014-06-08 15:34:05 +0000 | |
---|---|---|
committer | 2014-06-08 15:34:05 +0000 | |
commit | 7712220078efc8a8212d3163b6ef0faa217cf02c (patch) | |
tree | e4e5f9b9a4c25c455dff12951d573e15a1fe5f18 | |
parent | Add a define for the SSLv3 sequence size and use it, rather than sprinkling (diff) | |
download | wireguard-openbsd-7712220078efc8a8212d3163b6ef0faa217cf02c.tar.xz wireguard-openbsd-7712220078efc8a8212d3163b6ef0faa217cf02c.zip |
instead of reading past the end of the sun_fstypes array
assume FS_BSDFFS for partitions 8-15 in extended sun labels
as suggested by deraadt@
-rw-r--r-- | sys/arch/sparc64/stand/ofwboot/ofdev.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/arch/sparc64/stand/ofwboot/ofdev.c b/sys/arch/sparc64/stand/ofwboot/ofdev.c index 877be513793..3a54e9ffb91 100644 --- a/sys/arch/sparc64/stand/ofwboot/ofdev.c +++ b/sys/arch/sparc64/stand/ofwboot/ofdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofdev.c,v 1.20 2013/11/05 00:51:58 krw Exp $ */ +/* $OpenBSD: ofdev.c,v 1.21 2014/06/08 15:34:05 jsg Exp $ */ /* $NetBSD: ofdev.c,v 1.1 2000/08/20 14:58:41 mrg Exp $ */ /* @@ -339,12 +339,10 @@ disklabel_sun_to_bsd(struct sun_disklabel *sl, struct disklabel *lp) npp->p_fstype = FS_UNUSED; continue; } - npp->p_fstype = sun_fstypes[i+8]; - if (npp->p_fstype == FS_BSDFFS) { - npp->p_fragblock = - DISKLABELV1_FFS_FRAGBLOCK(2048, 8); - npp->p_cpg = 16; - } + npp->p_fstype = FS_BSDFFS; + npp->p_fragblock = + DISKLABELV1_FFS_FRAGBLOCK(2048, 8); + npp->p_cpg = 16; } if (sl->sl_xpmag == SL_XPMAGTYP) { for (i = 0; i < MAXPARTITIONS; i++) { |