summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-02-17 04:31:27 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-02-17 04:31:27 +0000
commit07b4a7d3e8ab12126dae8c7c4d10537958f5f57e (patch)
tree0dd9a4e41fb7d164c7bdea738437d510c3bc57b3 /sys
parentca0f1ac8e981572fce9cf131b2c412ef7e5eb516 (diff)
Enable stackgap_random. Set it initially to 1k.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 2cc8429b7d3..d861374dd13 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.64 2002/02/08 13:53:28 art Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.65 2002/02/17 04:31:26 art Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -70,7 +70,7 @@
* to it. Must be a n^2. If non-zero, the stack gap will be calculated as:
* (arc4random() * ALIGNBYTES) & (stackgap_random - 1) + STACKGAPLEN.
*/
-int stackgap_random;
+int stackgap_random = 1024;
/*
* check exec: