diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2023-04-19 10:22:11 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2023-04-19 13:35:14 +0000 |
commit | 27bb0d337c0d82a1a4f310315840236eb239963c (patch) | |
tree | 91cecea988c11caaec4aa37c2444234c7170fd88 /lib/libufs/cgread.3 | |
parent | 7d65a450cdcc7cc743f2ecd114ba3428a21c0033 (diff) | |
download | src-27bb0d337c0d82a1a4f310315840236eb239963c.tar.gz src-27bb0d337c0d82a1a4f310315840236eb239963c.zip |
libc: Add missing object size check to qsort_s(3)
When sorting, both the C11 standard (ISO/IEC 9899:2011, K.3.6.3.2) and
the ISO/IEC JTC1 SC22 WG14 N1172 standard, does not define objects of
zero size as undefined behaviour. However Microsoft's cpp-docs does.
Add proper checks for this. Found while working on bsort(3).
Reviewed by: kib@ and emaste@
MFC after: 1 week
Sponsored by: NVIDIA Networking
Differential Revision: https://reviews.freebsd.org/D39687
Diffstat (limited to 'lib/libufs/cgread.3')
0 files changed, 0 insertions, 0 deletions