diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-12-05 09:49:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-12-05 09:49:40 +0000 |
commit | 4107f58e89e1963f07b66da353523f87570b65e5 (patch) | |
tree | 9cb6f85f1232c9d875f075ab426e748f2f27ba9b /lib/libc/stdlib/malloc.3 | |
parent | 111020ba1d9bd95fb8c5c89606008f81640ca59a (diff) |
document how malloc(0) blobbies are stored, and their character
Diffstat (limited to 'lib/libc/stdlib/malloc.3')
-rw-r--r-- | lib/libc/stdlib/malloc.3 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3 index e5451bb71bc..8f05c38e866 100644 --- a/lib/libc/stdlib/malloc.3 +++ b/lib/libc/stdlib/malloc.3 @@ -34,7 +34,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: malloc.3,v 1.23 2001/11/05 21:31:21 millert Exp $ +.\" $OpenBSD: malloc.3,v 1.24 2001/12/05 09:49:39 deraadt Exp $ .\" .Dd August 27, 1996 .Dt MALLOC 3 @@ -81,6 +81,11 @@ or larger, the memory returned will be page-aligned. Allocation of a zero size object returns a pointer to a zero size object. This zero size object is access protected, so any access to it will generate an exception (SIGSEGV). +Many zero-sized objects can be placed consecutively in shared +protected pages. +The minimum size of the protection on each object is suitably aligned and +sized as previously stated, but the protection may extend further depending +on where in a protected zone the object lands. .Pp The .Fn calloc |