diff options
author | deraadt <> | 2001-12-05 09:49:39 +0000 |
---|---|---|
committer | deraadt <> | 2001-12-05 09:49:39 +0000 |
commit | e6969fd8586f3967bd8ccc6245fb6ea9c7d85618 (patch) | |
tree | 7ac0396330c40c9ea67bfc99e8450b5eec8ff063 /src | |
parent | baf103050bed8b455a434ead03efd0ea07742829 (diff) | |
download | openbsd-e6969fd8586f3967bd8ccc6245fb6ea9c7d85618.tar.gz openbsd-e6969fd8586f3967bd8ccc6245fb6ea9c7d85618.tar.bz2 openbsd-e6969fd8586f3967bd8ccc6245fb6ea9c7d85618.zip |
document how malloc(0) blobbies are stored, and their character
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libc/stdlib/malloc.3 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3 index e5451bb71b..8f05c38e86 100644 --- a/src/lib/libc/stdlib/malloc.3 +++ b/src/lib/libc/stdlib/malloc.3 | |||
@@ -34,7 +34,7 @@ | |||
34 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 34 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
35 | .\" SUCH DAMAGE. | 35 | .\" SUCH DAMAGE. |
36 | .\" | 36 | .\" |
37 | .\" $OpenBSD: malloc.3,v 1.23 2001/11/05 21:31:21 millert Exp $ | 37 | .\" $OpenBSD: malloc.3,v 1.24 2001/12/05 09:49:39 deraadt Exp $ |
38 | .\" | 38 | .\" |
39 | .Dd August 27, 1996 | 39 | .Dd August 27, 1996 |
40 | .Dt MALLOC 3 | 40 | .Dt MALLOC 3 |
@@ -81,6 +81,11 @@ or larger, the memory returned will be page-aligned. | |||
81 | Allocation of a zero size object returns a pointer to a zero size object. | 81 | Allocation of a zero size object returns a pointer to a zero size object. |
82 | This zero size object is access protected, so any access to it will | 82 | This zero size object is access protected, so any access to it will |
83 | generate an exception (SIGSEGV). | 83 | generate an exception (SIGSEGV). |
84 | Many zero-sized objects can be placed consecutively in shared | ||
85 | protected pages. | ||
86 | The minimum size of the protection on each object is suitably aligned and | ||
87 | sized as previously stated, but the protection may extend further depending | ||
88 | on where in a protected zone the object lands. | ||
84 | .Pp | 89 | .Pp |
85 | The | 90 | The |
86 | .Fn calloc | 91 | .Fn calloc |