mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
e4c2ffe932
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
(cherry picked from commit
|
||
---|---|---|
.. | ||
nls | ||
tests | ||
bwstring.c | ||
bwstring.h | ||
coll.c | ||
coll.h | ||
file.c | ||
file.h | ||
Makefile | ||
Makefile.depend | ||
Makefile.depend.options | ||
mem.c | ||
mem.h | ||
radixsort.c | ||
radixsort.h | ||
sort.1.in | ||
sort.c | ||
sort.h | ||
vsort.c | ||
vsort.h |