Alex Richardson d053fb22f6 usr.bin/sort: Avoid UBSan errors
UBSan complains about out-of-bounds accesses for zero-length arrays. To
avoid this we can use flexible array members. However, the C standard does
not allow for structures that only contain flexible array members, so we
move the length parameters into that structure too.

Split out from D28233.

Reviewed By:	markj
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D31009
2021-07-06 10:51:05 +01:00
..
2021-07-06 10:51:05 +01:00
2021-07-06 10:51:05 +01:00
2020-09-08 15:01:49 +00:00
2021-07-06 10:51:05 +01:00
2021-05-13 09:33:19 -04:00
2021-05-13 09:33:19 -04:00
2021-05-13 09:33:19 -04:00