[PATCH] x86, kaslr: use char array to gain sizeof sanity

2013-11-12 Thread Kees Cook
The build_str needs to be char [] not char * for the sizeof() to report the string length. Reported-by: Mathias Krause Signed-off-by: Kees Cook --- arch/x86/boot/compressed/aslr.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/aslr.c

[PATCH] x86, kaslr: use char array to gain sizeof sanity

2013-11-12 Thread Kees Cook
The build_str needs to be char [] not char * for the sizeof() to report the string length. Reported-by: Mathias Krause mini...@googlemail.com Signed-off-by: Kees Cook keesc...@chromium.org --- arch/x86/boot/compressed/aslr.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git