HomeFreeBSD

Fix off-by-one in array index bounds check

Description

Fix off-by-one in array index bounds check

bhyveload would allow you to create 33 entries on an array that only has 32 slots

Differential Revision: https://reviews.freebsd.org/D2569
Reviewed by: araujo
Approved by: neel
MFC after: 1 week
Sponsored by: ScaleEngine Inc.

Details

Provenance
allanjudeAuthored on
Reviewer
araujo
Differential Revision
D2569: Fix off-by-one in array index bounds check
Parents
rS283074: Fix error in gmountver(8) man page
Branches
Unknown
Tags
Unknown