1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00
freebsd/usr.bin/sort
Alex Richardson e4c2ffe932 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

(cherry picked from commit d053fb22f6)
2021-08-05 09:57:45 +01:00
..
nls
tests
bwstring.c usr.bin/sort: Avoid UBSan errors 2021-08-05 09:57:45 +01:00
bwstring.h usr.bin/sort: Avoid UBSan errors 2021-08-05 09:57:45 +01:00
coll.c sort(1): Memoize MD5 computation to reduce repeated computation 2019-04-13 04:42:17 +00:00
coll.h sort(1): Memoize MD5 computation to reduce repeated computation 2019-04-13 04:42:17 +00:00
file.c sort(1): Remove duplicate option check 2020-09-08 15:01:49 +00:00
file.h sort(1): Fix -m when only implicit stdin is used for input 2018-06-20 03:31:19 +00:00
Makefile usr.bin/sort: Avoid UBSan errors 2021-08-05 09:57:45 +01:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
mem.c
mem.h
radixsort.c sort: Cache value of MB_CUR_MAX 2021-05-20 09:15:43 -04:00
radixsort.h
sort.1.in Adjust history, info source from v1's manuals 2019-09-04 13:44:46 +00:00
sort.c sort: Cache value of MB_CUR_MAX 2021-05-20 09:15:43 -04:00
sort.h sort: Cache value of MB_CUR_MAX 2021-05-20 09:15:43 -04:00
vsort.c
vsort.h