summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2016-10-14 17:33:36 +0000
committerotto <otto@openbsd.org>2016-10-14 17:33:36 +0000
commitdc22857424fc2613d506d2f6035d486c39db6293 (patch)
tree38848febed9d3838a237e644a4b1149d6678373b /lib/libc/stdlib/malloc.c
parentImplement an operation to dequeue packets from the completion queue (diff)
downloadwireguard-openbsd-dc22857424fc2613d506d2f6035d486c39db6293.tar.xz
wireguard-openbsd-dc22857424fc2613d506d2f6035d486c39db6293.zip
0xd0 -> 0xdb; ok deraadt@ millert@ tedu@
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
-rw-r--r--lib/libc/stdlib/malloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index fe80af08c53..dc32420ffc3 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: malloc.c,v 1.200 2016/10/12 07:36:38 otto Exp $ */
+/* $OpenBSD: malloc.c,v 1.201 2016/10/14 17:33:36 otto Exp $ */
/*
* Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek <otto@drijf.net>
* Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
@@ -81,8 +81,8 @@
* when the 'J' option is enabled. Use SOME_JUNK right after alloc,
* and SOME_FREEJUNK right before free.
*/
-#define SOME_JUNK 0xd0 /* as in "Duh" :-) */
-#define SOME_FREEJUNK 0xdf
+#define SOME_JUNK 0xdb /* deadbeef */
+#define SOME_FREEJUNK 0xdf /* dead, free */
#define MMAP(sz) mmap(NULL, (sz), PROT_READ | PROT_WRITE, \
MAP_ANON | MAP_PRIVATE, -1, 0)