summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2023-07-01 18:35:15 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2023-07-01 18:35:15 +0000
commit5d18c0ce00936391f2b64f916475c8171fd3c1e7 (patch)
treeec171e5a41cf7af6b5531fbda6bc9cde955b8608 /lib/libc
parentaaede025ef934b14f6279e2fdb6113f95f676db0 (diff)
Document that small allocations are initially junked with 0xdf now
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/malloc.36
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index 88a8264da52..b700add823f 100644
--- a/lib/libc/stdlib/malloc.3
+++ b/lib/libc/stdlib/malloc.3
@@ -30,9 +30,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: malloc.3,v 1.136 2023/06/30 06:24:58 otto Exp $
+.\" $OpenBSD: malloc.3,v 1.137 2023/07/01 18:35:14 otto Exp $
.\"
-.Dd $Mdocdate: June 30 2023 $
+.Dd $Mdocdate: July 1 2023 $
.Dt MALLOC 3
.Os
.Sh NAME
@@ -325,7 +325,7 @@ Increase the junk level by one if it is smaller than 2.
Decrease the junk level by one if it is larger than 0.
Junking writes some junk bytes into the area allocated.
Junk is bytes of 0xdb when allocating;
-freed allocations are filled with 0xdf.
+small allocations are initially junked with 0xdf as are freed allocations.
By default the junk level is 1: after free,
small chunks are completely junked;
for pages the first part is junked.