[Bug 276517] disklabel(8) crash

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 23 Jan 2024 02:06:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276517

--- Comment #4 from Ed Maste <emaste@freebsd.org> ---
Yes bsdlabel is just broken when there are more than 8 partitions.

Note this, from sys/sys/disk/bsd.h:
#define BSD_NPARTS_MIN          8
#define BSD_NPARTS_MAX          20

struct disklabel {
...
        struct partition {              /* the partition table */
...
        } d_partitions[BSD_NPARTS_MIN]; /* actually may be more */
};

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