Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 327f7d72 authored by Kees Cook's avatar Kees Cook Committed by H. Peter Anvin
Browse files

x86, kaslr: Use char array to gain sizeof sanity



The build_str needs to be char [] not char * for the sizeof() to report
the string length.

Reported-by: default avatarMathias Krause <minipli@googlemail.com>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Link: http://lkml.kernel.org/r/20131112165607.GA5921@www.outflux.net


Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent e8236c4d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
#include <linux/version.h>

/* Simplified build-specific string for starting entropy. */
static const char *build_str = UTS_RELEASE " (" LINUX_COMPILE_BY "@"
static const char build_str[] = UTS_RELEASE " (" LINUX_COMPILE_BY "@"
		LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION;

#define I8254_PORT_CONTROL	0x43