From: deraadt Date: Sat, 28 Dec 2013 20:52:48 +0000 (+0000) Subject: oops, the fallback stack protector code must handle 64-bit guards X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=be3a8cc0ea65cb15c5ac2d40cdf98a1aa844569b;p=openbsd oops, the fallback stack protector code must handle 64-bit guards spotted by kettenis --- 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