summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/malloc.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/stdlib/malloc.3')
-rw-r--r--src/lib/libc/stdlib/malloc.39
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3
index df62e7d3a5..2b0f5632a9 100644
--- a/src/lib/libc/stdlib/malloc.3
+++ b/src/lib/libc/stdlib/malloc.3
@@ -30,7 +30,7 @@
30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31.\" SUCH DAMAGE. 31.\" SUCH DAMAGE.
32.\" 32.\"
33.\" $OpenBSD: malloc.3,v 1.38 2005/05/24 16:48:35 tedu Exp $ 33.\" $OpenBSD: malloc.3,v 1.39 2005/06/07 04:42:42 tedu Exp $
34.\" 34.\"
35.Dd August 27, 1996 35.Dd August 27, 1996
36.Dt MALLOC 3 36.Dt MALLOC 3
@@ -204,8 +204,6 @@ Enable guard pages and chunk randomization.
204Each page size or larger allocation is followed by a guard page that will 204Each page size or larger allocation is followed by a guard page that will
205cause a segmentation fault upon any access. 205cause a segmentation fault upon any access.
206Smaller than page size chunks are returned in a random order. 206Smaller than page size chunks are returned in a random order.
207Pointer sized allocations are aligned to the end of a page to catch
208sizeof(ptr) errors where sizeof(*ptr) is meant.
209.Pp 207.Pp
210.It Cm H 208.It Cm H
211.Dq Hint . 209.Dq Hint .
@@ -223,6 +221,11 @@ Currently junk is bytes of 0xd0; this is pronounced
223Do not output warning messages when encountering possible corruption 221Do not output warning messages when encountering possible corruption
224or bad pointers. 222or bad pointers.
225.Pp 223.Pp
224.It Cm P
225.Dq Pointer Protection .
226Pointer sized allocations are aligned to the end of a page to catch
227sizeof(ptr) errors where sizeof(*ptr) is meant.
228.Pp
226.It Cm R 229.It Cm R
227.Dq realloc . 230.Dq realloc .
228Always reallocate when 231Always reallocate when