Life after free?

Evan Marshall Manning manning at nntp-server.caltech.edu
Fri Oct 5 10:24:16 AEST 1990


In article <623 at demott.COM> kdq at demott.COM (Kevin D. Quitt) writes:
>     It should be noted that in secure systems, free() will clear the memory.

brnstnd at kramden.acf.nyu.edu (Dan Bernstein) writes:

>That would be quite amusing, since there's absolutely no concept of
>security within C. If you can free it, you can copy it out and save it
>first.

You're missing the point.  Of course you can do what you like with your
data.  But when you free() it you return it to the OS.  And anybody else
can end up with your data when they next malloc().

***************************************************************************
Your eyes are weary from staring at the CRT for so | Evan M. Manning
long.  You feel sleepy.  Notice how restful it is  |      is
to watch the cursor blink.  Close your eyes.  The  |manning at gap.cco.caltech.edu
opinions stated above are yours.  You cannot       | manning at mars.jpl.nasa.gov
imagine why you ever felt otherwise.               | gleeper at tybalt.caltech.edu



More information about the Comp.lang.c mailing list