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 |
||
---|---|---|
.. | ||
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 |