[Heimdal-source-changes] [heimdal/heimdal] 848525: roken: Add memset_s implementation
GitHub
noreply at github.com
Fre Mars 6 19:38:31 CET 2015
Branch: refs/heads/master
Home: https://github.com/heimdal/heimdal
Commit: 84852509896abba2a98a35d1dff6deaf514a2d95
https://github.com/heimdal/heimdal/commit/84852509896abba2a98a35d1dff6deaf514a2d95
Author: Simon Wilkinson <sxw at your-file-system.com>
Date: 2015-03-05 (Thu, 05 Mar 2015)
Changed paths:
M cf/roken-frag.m4
M lib/roken/NTMakefile
A lib/roken/memset_s.c
M lib/roken/roken.h.in
M lib/roken/version-script.map
Log Message:
-----------
roken: Add memset_s implementation
Add an implementation of memset_s to roken.
Some optimising compilers may remove the memset() instruction when it
is used immediately before a free, which defeats its purpose if the
intention is to zero memory before returning it to the heap or stack.
C11 added memset_s, provide a fallback in roken so that memset_s can
be used on all platforms.
More information about the Heimdal-source-changes
mailing list