summaryrefslogtreecommitdiffstats
path: root/linux-user/alpha
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2017-07-24 20:27:47 +0200
committerLaurent Vivier2018-06-04 01:30:43 +0200
commit871f95c6171d5301d14dbc73997aa8fbd8e9e7ef (patch)
tree8f22b3e4f82d900daa01ed5122506033e0bcf4c6 /linux-user/alpha
parentMerge remote-tracking branch 'remotes/stsquad/tags/pull-travis-updates-010618... (diff)
downloadqemu-871f95c6171d5301d14dbc73997aa8fbd8e9e7ef.tar.gz
qemu-871f95c6171d5301d14dbc73997aa8fbd8e9e7ef.tar.xz
qemu-871f95c6171d5301d14dbc73997aa8fbd8e9e7ef.zip
syscall: replace strcpy() by g_strlcpy()
linux-user/syscall.c:9860:17: warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 strcpy (buf->machine, cpu_to_uname_machine(cpu_env)); ^~~~~~ Reported-by: Clang Static Analyzer Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20170724182751.18261-32-f4bug@amsat.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/alpha')
0 files changed, 0 insertions, 0 deletions