diff options
author | Zhao Hongjiang <zhaohongjiang@huawei.com> | 2013-06-09 10:57:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-19 11:10:29 +0200 |
commit | 117a0c5fc9c2d06045bd217385b2b39ea426b5a6 (patch) | |
tree | 5023fb469da9fc796e80a1fdb919a2cad0d4cedb /arch/sparc/kernel/leon_kernel.c | |
parent | arch: sparc: prom: looping issue, need additional length check in the outside... (diff) | |
download | linux-117a0c5fc9c2d06045bd217385b2b39ea426b5a6.tar.xz linux-117a0c5fc9c2d06045bd217385b2b39ea426b5a6.zip |
sparc: kernel: using strlcpy() instead of strcpy()
'boot_command_line' and 'full_boot_str' has a fix length, 'cmdline_p' and
'boot_command' maybe larger than them. So use strlcpy() instead of strcpy()
to avoid memory overflow.
Signed-off-by: Zhao Hongjiang <zhaohongjiang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/leon_kernel.c')
0 files changed, 0 insertions, 0 deletions