OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
180d0eb
)
parisc: Use safer strscpy() in setup_cmdline()
author
Helge Deller
<deller@gmx.de>
Fri, 14 Jan 2022 06:52:07 +0000
(07:52 +0100)
committer
Helge Deller
<deller@gmx.de>
Thu, 20 Jan 2022 19:39:19 +0000
(20:39 +0100)
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/setup.c
patch
|
blob
|
history
diff --git
a/arch/parisc/kernel/setup.c
b/arch/parisc/kernel/setup.c
index
cceb098
..
456087a
100644
(file)
--- a/
arch/parisc/kernel/setup.c
+++ b/
arch/parisc/kernel/setup.c
@@
-56,7
+56,7
@@
void __init setup_cmdline(char **cmdline_p)
/* called from hpux boot loader */
boot_command_line[0] = '\0';
} else {
- str
l
cpy(boot_command_line, (char *)__va(boot_args[1]),
+ str
s
cpy(boot_command_line, (char *)__va(boot_args[1]),
COMMAND_LINE_SIZE);
#ifdef CONFIG_BLK_DEV_INITRD
@@
-68,7
+68,7
@@
void __init setup_cmdline(char **cmdline_p)
#endif
}
- str
cpy(command_line, boot_command_line
);
+ str
scpy(command_line, boot_command_line, COMMAND_LINE_SIZE
);
*cmdline_p = command_line;
}