From: Paul Cercueil Date: Tue, 24 Jul 2012 01:00:24 +0000 (+0200) Subject: fbcon: prevent possible buffer overflow. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e432964a3c5ce517fd93101ae3875172ee958b65;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fbcon: prevent possible buffer overflow. Signed-off-by: Paul Cercueil Signed-off-by: Florian Tobias Schandinat --- diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 88e92041d8f0..fdefa8fd72c4 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -449,7 +449,7 @@ static int __init fb_console_setup(char *this_opt) while ((options = strsep(&this_opt, ",")) != NULL) { if (!strncmp(options, "font:", 5)) - strcpy(fontname, options + 5); + strlcpy(fontname, options + 5, sizeof(fontname)); if (!strncmp(options, "scrollback:", 11)) { options += 11;