summaryrefslogtreecommitdiffstats
path: root/hw/lm32_hwsetup.h
diff options
context:
space:
mode:
authorJim Meyering2012-10-04 13:09:49 +0200
committerAnthony Liguori2012-10-05 14:58:37 +0200
commita79b5f8b80890b402fdb0733b0a073695a7875b5 (patch)
tree99a6f22f139239defa1cb0b4ea9ca66e142eccf6 /hw/lm32_hwsetup.h
parentvmdk: relative_path: use pstrcpy in place of strncpy (diff)
downloadqemu-a79b5f8b80890b402fdb0733b0a073695a7875b5.tar.gz
qemu-a79b5f8b80890b402fdb0733b0a073695a7875b5.tar.xz
qemu-a79b5f8b80890b402fdb0733b0a073695a7875b5.zip
hw/9pfs: avoid buffer overrun
v9fs_add_dir_node and qemu_v9fs_synth_add_file used strncpy to form node->name, which requires NUL-termination, but strncpy does not ensure NUL-termination. Use pstrcpy, which does. Acked-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/lm32_hwsetup.h')
0 files changed, 0 insertions, 0 deletions