summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.3
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2005-06-07 04:42:42 +0000
committertedu <tedu@openbsd.org>2005-06-07 04:42:42 +0000
commita162e2d8657af52a13fe304de49e38add146f24f (patch)
tree21aefb1888f9718760677e6e08d0f83767442261 /lib/libc/stdlib/malloc.3
parentIntroduce verbose option to control the logging of the pf rules. (diff)
downloadwireguard-openbsd-a162e2d8657af52a13fe304de49e38add146f24f.tar.xz
wireguard-openbsd-a162e2d8657af52a13fe304de49e38add146f24f.zip
adding pointer protection to 'G' was too heavyweight. Since malloc guard
should be generally usable, split this out into option 'P'. ok deraadt
Diffstat (limited to 'lib/libc/stdlib/malloc.3')
-rw-r--r--lib/libc/stdlib/malloc.39
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index df62e7d3a52..2b0f5632a96 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.38 2005/05/24 16:48:35 tedu Exp $
+.\" $OpenBSD: malloc.3,v 1.39 2005/06/07 04:42:42 tedu Exp $
.\"
.Dd August 27, 1996
.Dt MALLOC 3
@@ -204,8 +204,6 @@ 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.
Smaller than page size chunks are returned in a random order.
-Pointer sized allocations are aligned to the end of a page to catch
-sizeof(ptr) errors where sizeof(*ptr) is meant.
.Pp
.It Cm H
.Dq Hint .
@@ -223,6 +221,11 @@ Currently junk is bytes of 0xd0; this is pronounced
Do not output warning messages when encountering possible corruption
or bad pointers.
.Pp
+.It Cm P
+.Dq Pointer Protection .
+Pointer sized allocations are aligned to the end of a page to catch
+sizeof(ptr) errors where sizeof(*ptr) is meant.
+.Pp
.It Cm R
.Dq realloc .
Always reallocate when