Manual Reference Pages - PWS_MEMNUKE (3)
- Over-write the contents of a memory buffer with zeros
volatile void *b
bytes of memory from the pointer referenced by
with zeros. This is useful for clearing a memory buffer which contained, for example, a clear-text password. Calls to
do not zero the memory, so another application could conceivably allocate memory which contains sensitive data from another application. Calling
on the buffer prior to calling
on it will prevent this potentially dangerous condition.
function cannot indicate an error, for example if it returns prematurely because a null-pointer was passed to it.
It requires that
be cast (volatile) in order to prevent compilers from optimizing it out so that memory is safely wiped.
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.