diff options
author | 2013-05-29 18:51:28 +0800 | |
---|---|---|
committer | 2013-07-19 13:54:14 -0700 | |
commit | 00ee03092a6e4b1d0ddc6b861ebb9ed8d13cc29b (patch) | |
tree | 1819f32f291cb321a3123d5c6b8bad44b819f4e9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | alpha: Convert print_symbol to %pSR (diff) | |
download | linux-dev-00ee03092a6e4b1d0ddc6b861ebb9ed8d13cc29b.tar.xz linux-dev-00ee03092a6e4b1d0ddc6b861ebb9ed8d13cc29b.zip |
alpha: kernel: using memcpy() instead of strcpy()
When sending message in send_secondary_console_msg(), the length is not
include the NUL byte, and also not copy NUL to 'ipc_buffer'.
When receive message in recv_secondary_console_msg(), the 'cnt' also
excludes NUL.
So when get string from ipc_buffer, it may not be NUL terminated.
Then use memcpy() instead of strcpy(), and set last byte NUL.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions