summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2004-02-02 18:15:53 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2004-02-02 18:15:53 +0000
commitf24ebea2e32fbaf9a1faad9341a128bd40d96d81 (patch)
tree41a8c4bb2043424dad1e8059edfd13e35139eda8 /lib/libc/stdlib
parent8dc711d108614af007124910f3b532bf25eec0ea (diff)
'F'reeguard doc, as reported missing by brad. nit free thanks to jmc
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/malloc.39
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index 1182256650a..ea6344d6a95 100644
--- a/lib/libc/stdlib/malloc.3
+++ b/lib/libc/stdlib/malloc.3
@@ -30,7 +30,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: malloc.3,v 1.33 2003/11/25 12:32:54 jmc Exp $
+.\" $OpenBSD: malloc.3,v 1.34 2004/02/02 18:15:52 tedu Exp $
.\"
.Dd August 27, 1996
.Dt MALLOC 3
@@ -192,7 +192,14 @@ at exit.
This option requires the library to have been compiled with -DMALLOC_STATS in
order to have any effect.
.Pp
+.It Cm F
+.Dq Freeguard .
+Enable use after free protection.
+Unused pages on the freelist are read and write protected to
+cause a segmentation fault upon access.
+.Pp
.It Cm G
+.Dq Guard .
Enable guard pages and chunk randomization.
Each page size or larger allocation is followed by a guard page that will
cause a segmentation fault upon any access.