opnsense-src/lib/libc/tests/string
Konstantin Belousov 25b73e6327 Improve standard compliance for memset_s() and abort_handler_s().
abort_handler_s() currently simply calls abort(), though the standard
specifies more: "Writes an implementation-defined message to stderr
which must include the string pointed to by msg and calls abort()."

memset_s() is missing error condition "n > smax", and does not invoke
the constraint handler after filling the buffer: "following errors are
detected at runtime and call the currently installed constraint
handler function after storing ch in every location of the destination
range [dest, dest+destsz) if dest and destsz are themselves valid",
one of the errors is "n > smax" itself.

Submitted by:	Yuri Pankov <yuripv@gmx.com>
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D11991
2017-08-12 15:18:17 +00:00
..
Makefile Implement the memset_s(3) function as specified by the C11 ISO/IEC 2017-03-30 04:57:26 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
memcmp_test.c libc: Add some tests for memcmp(). 2016-03-06 18:41:48 +00:00
memset_s_test.c Improve standard compliance for memset_s() and abort_handler_s(). 2017-08-12 15:18:17 +00:00
stpncpy_test.c Integrate tools/regression/lib/libc/string into the FreeBSD test suite 2015-11-08 07:53:31 +00:00
strerror_test.c Integrate tools/regression/lib/libc/string into the FreeBSD test suite 2015-11-08 07:53:31 +00:00
strxfrm_test.c Add a regression test about the crash with strxfrm and ISO8859-5 locales 2016-07-15 23:24:00 +00:00
wcscasecmp_test.c Integrate tools/regression/lib/libc/string into the FreeBSD test suite 2015-11-08 07:53:31 +00:00
wcscoll_test.c Fix strcoll_l disagreeing with strxfrm by reworking the forward order case in 2017-04-16 19:12:07 +00:00
wcsnlen_test.c Integrate tools/regression/lib/libc/string into the FreeBSD test suite 2015-11-08 07:53:31 +00:00