artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b4f168
)
oops, the fallback stack protector code must handle 64-bit guards
author
deraadt
<deraadt@openbsd.org>
Sat, 28 Dec 2013 20:52:48 +0000
(20:52 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 28 Dec 2013 20:52:48 +0000
(20:52 +0000)
spotted by kettenis
sys/kern/init_main.c
patch
|
blob
|
history
diff --git
a/sys/kern/init_main.c
b/sys/kern/init_main.c
index
703727b
..
01061f8
100644
(file)
--- a/
sys/kern/init_main.c
+++ b/
sys/kern/init_main.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: init_main.c,v 1.19
5 2013/12/28 03:22:52
deraadt Exp $ */
+/* $OpenBSD: init_main.c,v 1.19
6 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