Fix a couple of auto allocation corner cases.
authorkrw <krw@openbsd.org>
Fri, 13 Jan 2023 14:24:17 +0000 (14:24 +0000)
committerkrw <krw@openbsd.org>
Fri, 13 Jan 2023 14:24:17 +0000 (14:24 +0000)
commitc2c8bb799164eb861beedddf7c4be1bf0e960ca2
tree0fd8a408784c3189e841fc591c3a11b175ef96d6
parentd879eb98e37b48d4b443201528ff729cfced89f8
Fix a couple of auto allocation corner cases.

Don't stop counting free partitions just because a spoofed
partition is encountered.

Always check for (end - start) underflow after rounding
start/end to cylinder boundaries.
sbin/disklabel/editor.c