diff options
author | 2005-06-07 04:42:42 +0000 | |
---|---|---|
committer | 2005-06-07 04:42:42 +0000 | |
commit | a162e2d8657af52a13fe304de49e38add146f24f (patch) | |
tree | 21aefb1888f9718760677e6e08d0f83767442261 /lib/libc/stdlib/malloc.3 | |
parent | Introduce verbose option to control the logging of the pf rules. (diff) | |
download | wireguard-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.3 | 9 |
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 |