Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2024 02:18:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 276517] disklabel(8) crash
Message-ID:  <bug-276517-227-TDdGIVov8Q@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-276517-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-276517-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276517

--- Comment #5 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D3f4f82c0d7791bddf2d6f2c29d9f2f8c4=
8c712e2

commit 3f4f82c0d7791bddf2d6f2c29d9f2f8c48c712e2
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-01-23 02:05:58 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-01-23 02:17:23 +0000

    bsdlabel: limit to 8 partitions

    bsdlabel is intended to support up to 20 partitions, but the disklabel
    struct has a d_partitions array with only BSD_NPARTS_MIN (8) entries.
    Previously, an attempt to operate on a bsdlabel with more than eight
    partitions resulted in a buffer overflow.

    As a stopgap limit bsdlabel to 8 partitions until this is fixed
    properly.

    PR:             276517

 sbin/bsdlabel/bsdlabel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276517-227-TDdGIVov8Q>