]> git.proxmox.com Git - pve-installer.git/commit
common: enforce even number of disks for ZFS RAID-10
authorChristoph Heiss <c.heiss@proxmox.com>
Tue, 21 Nov 2023 10:45:51 +0000 (11:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 Nov 2023 12:11:50 +0000 (13:11 +0100)
commit984be2a5265d9523ddb2d82036cda310f23f4cd2
tree5b5ce10a5ff4a991e1a3849c74146347b149ada5
parent18fa0cf8faf5a986dd6236ec4aed6a0502fac2c3
common: enforce even number of disks for ZFS RAID-10

An uneven number of disks otherwise causes a panic due to an
out-of-bounds array access in the loop below.

Reported-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-installer-common/src/disk_checks.rs