8548 want memset_s(3C)
Review Request #640 — Created Aug. 6, 2017 and submitted — Latest diff uploaded
This adopts the
memset_s()implementation from FreeBSD.
Newly added symbols are visible if
_STRICT_SYMBOLSis not defined, or
__STDC_WANT_LIB_EXT1__is set to 1 (via
__STDC_LIB_EXT1__is not set as we don't implement all bounds-checking functions at the moment.
- new libc-tests test cases
- compiled a simple test case on updated system, in turn calling
free()and checked that (both with gcc 4.4.4 and clang 3.8)
memset()gets optimized away with -O >= 1, while
memset_s()doesn't (exactly what we need)