projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fea7a08
)
fbcon: prevent possible buffer overflow.
author
Paul Cercueil
<
[email protected]
>
Tue, 24 Jul 2012 01:00:24 +0000
(
03:00
+0200)
committer
Florian Tobias Schandinat
<
[email protected]
>
Thu, 23 Aug 2012 12:22:46 +0000
(12:22 +0000)
Signed-off-by: Paul Cercueil <
[email protected]
>
Signed-off-by: Florian Tobias Schandinat <
[email protected]
>
drivers/video/console/fbcon.c
patch
|
blob
|
history
diff --git
a/drivers/video/console/fbcon.c
b/drivers/video/console/fbcon.c
index 88e92041d8f02d6136458535c61c3090c304e576..fdefa8fd72c4da070787d95260b2744d6a9a7dab 100644
(file)
--- 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))
- str
cpy(fontname, options + 5
);
+ str
lcpy(fontname, options + 5, sizeof(fontname)
);
if (!strncmp(options, "scrollback:", 11)) {
options += 11;