aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorWang Xiayang <[email protected]>2019-09-20 14:55:47 +0800
committerLey Foon Tan <[email protected]>2019-09-20 14:55:57 +0800
commit91d99a724e9c60e14332c26ab2284bf696b94c8e (patch)
treeb1063a99689b528be795a82943bbdf97ab69869a /tools/perf/scripts/python/export-to-sqlite.py
parent4d856f72c10ecb060868ed10ff1b1453943fc6c8 (diff)
nios2: force the string buffer NULL-terminated
strncpy() does not ensure NULL-termination when the input string size equals to the destination buffer size COMMAND_LINE_SIZE. Besides, grep under arch/ with 'boot_command_line' shows no other arch-specific code uses strncpy() when copying boot_command_line. Use strlcpy() instead. This issue is identified by a Coccinelle script. Signed-off-by: Wang Xiayang <[email protected]> Signed-off-by: Ley Foon Tan <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions