summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2011-06-20 18:04:07 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2011-06-20 18:04:07 +0000
commit50ecce4ef0dbc37f18a399040ed40e18539246ac (patch)
tree972f8e04a47bc99aca7914115eccc15602ae1544 /lib/libc
parent0dab9b20ae02878b22f5ce0b94031215439f4986 (diff)
as man page states, lower case undoes upper case. add support for little s,
no security, for consistency. use of this option is discouraged. :) ok deraadt guenther millert
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/malloc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index bdc6ca69d3d..976880e757b 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: malloc.c,v 1.137 2011/05/20 20:02:08 otto Exp $ */
+/* $OpenBSD: malloc.c,v 1.138 2011/06/20 18:04:06 tedu Exp $ */
/*
* Copyright (c) 2008 Otto Moerbeek <otto@drijf.net>
*
@@ -548,6 +548,10 @@ omalloc_init(struct dir_info **dp)
case 'R':
mopts.malloc_realloc = 1;
break;
+ case 's':
+ mopts.malloc_freeprot = mopts.malloc_junk = 0;
+ mopts.malloc_guard = 0;
+ break;
case 'S':
mopts.malloc_freeprot = mopts.malloc_junk = 1;
mopts.malloc_guard = MALLOC_PAGESIZE;