From be3a8cc0ea65cb15c5ac2d40cdf98a1aa844569b Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 28 Dec 2013 20:52:48 +0000 Subject: [PATCH] oops, the fallback stack protector code must handle 64-bit guards spotted by kettenis --- sys/kern/init_main.c | 4 ++-- 1 file 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 -- 2.20.1