From: Paul Cercueil Date: Tue, 24 Jul 2012 01:00:24 +0000 (+0200) Subject: fbcon: prevent possible buffer overflow. X-Git-Tag: v3.6-rc5~16^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e432964a3c5ce517fd93101ae3875172ee958b65;p=platform%2Fkernel%2Flinux-exynos.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 88e9204..fdefa8f 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;