diff options
Diffstat (limited to 'src/lib/libc/stdlib/malloc.3')
-rw-r--r-- | src/lib/libc/stdlib/malloc.3 | 9 |
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. | |||
204 | Each page size or larger allocation is followed by a guard page that will | 204 | Each page size or larger allocation is followed by a guard page that will |
205 | cause a segmentation fault upon any access. | 205 | cause a segmentation fault upon any access. |
206 | Smaller than page size chunks are returned in a random order. | 206 | Smaller than page size chunks are returned in a random order. |
207 | Pointer sized allocations are aligned to the end of a page to catch | ||
208 | sizeof(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 | |||
223 | Do not output warning messages when encountering possible corruption | 221 | Do not output warning messages when encountering possible corruption |
224 | or bad pointers. | 222 | or bad pointers. |
225 | .Pp | 223 | .Pp |
224 | .It Cm P | ||
225 | .Dq Pointer Protection . | ||
226 | Pointer sized allocations are aligned to the end of a page to catch | ||
227 | sizeof(ptr) errors where sizeof(*ptr) is meant. | ||
228 | .Pp | ||
226 | .It Cm R | 229 | .It Cm R |
227 | .Dq realloc . | 230 | .Dq realloc . |
228 | Always reallocate when | 231 | Always reallocate when |