From 65ac8e1aa6c8de74722ab9326131aca3acef08db Mon Sep 17 00:00:00 2001 From: tedu <> Date: Tue, 7 Jun 2005 04:42:42 +0000 Subject: adding pointer protection to 'G' was too heavyweight. Since malloc guard should be generally usable, split this out into option 'P'. ok deraadt --- src/lib/libc/stdlib/malloc.3 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/lib/libc/stdlib/malloc.3') 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 @@ .\" 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 -- cgit v1.2.3-55-g6feb