Summary: | Library is missing memset_s | ||
---|---|---|---|
Product: | glibc | Reporter: | Jeffrey Walton <noloader> |
Component: | string | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | enhancement | CC: | adhemerval.zanella, drepper.fsp, msebor, noloader |
Priority: | P2 | Flags: | fweimer:
security-
|
Version: | 2.20 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Jeffrey Walton
2015-01-27 00:07:30 UTC
New features should be proposed on libc-alpha, not in Bugzilla. Please restart the discussions there, including a careful synthesis of the arguments from previous libc-alpha discussions of the issue to help the community in reaching consensus. The GCC -fno-builtin-memset option can be used to prevent compatible compilers from optimizing away calls to memset that aren't strictly speaking necessary. Regarding portability: memset_s is an optional feature of the C11 standard and as such isn't really portable. (AFAIK, there also are no conforming C11 implementations that provide the optional Annex K in which the function is defined.) I will close this bug report based on comment #2. |