Home
last modified time | relevance | path

Searched hist:d053fb22f6d3b6bb0f4e47e4507fefc20cbe0e32 (Results 1 – 3 of 3) sorted by relevance

/freebsd/usr.bin/sort/
H A Dbwstring.hdiff d053fb22f6d3b6bb0f4e47e4507fefc20cbe0e32 Mon Jul 05 15:32:48 CEST 2021 Alex Richardson <arichardson@FreeBSD.org> 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
H A DMakefilediff d053fb22f6d3b6bb0f4e47e4507fefc20cbe0e32 Mon Jul 05 15:32:48 CEST 2021 Alex Richardson <arichardson@FreeBSD.org> 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
H A Dbwstring.cdiff d053fb22f6d3b6bb0f4e47e4507fefc20cbe0e32 Mon Jul 05 15:32:48 CEST 2021 Alex Richardson <arichardson@FreeBSD.org> 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