diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-12-28 20:52:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-12-28 20:52:49 +0000 |
commit | 2fad2a40db5220b57d22d7ac4cb77b7d49c20e30 (patch) | |
tree | e4318b7ad3c35ccef30473cb1400d2c6151bc2d1 /sys/kern/init_main.c | |
parent | 99c5aee355fac35ed7133fd2fd2c9d43019d6b15 (diff) |
oops, the fallback stack protector code must handle 64-bit guards
spotted by kettenis
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 703727b6985..01061f865ab 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.195 2013/12/28 03:22:52 deraadt Exp $ */ +/* $OpenBSD: init_main.c,v 1.196 2013/12/28 20:52:48 deraadt Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -415,7 +415,7 @@ main(void *framep) if (__guard_local == 0) { volatile long newguard; - newguard = arc4random(); + arc4random_buf((void *)&newguard, sizeof newguard); __guard_local = newguard; } #endif |