Skip to content

Commit

Permalink
fbcon: prevent possible buffer overflow.
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
  • Loading branch information
Paul Cercueil authored and Florian Tobias Schandinat committed Aug 23, 2012
1 parent fea7a08 commit e432964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/console/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e432964

Please sign in to comment.