qemu/block
Jim Meyering 3178e2755e sheepdog: avoid a few buffer overruns
* parse_vdiname: Use pstrcpy, not strncpy, when the destination
buffer must be NUL-terminated.
* sd_open: Likewise, avoid buffer overrun.
* do_sd_create: Likewise.  Leave the preceding memset, since
pstrcpy does not NUL-fill, and filename needs that.
* sd_snapshot_create: Add a comment/question.
* find_vdi_name: Remove a useless memset.
* sd_snapshot_goto: Remove a useless memset.
Use pstrcpy to NUL-terminate, because find_vdi_name requires
that its vdi arg (filename parameter) be NUL-terminated.
It seems ok not to NUL-fill the buffer.
Do the same for snapid: remove useless memset-0 (instead,
zero tag[0]).  Use pstrcpy, not strncpy.
* sd_snapshot_list: Use pstrcpy, not strncpy to write
into the ->name member.  Each must be NUL-terminated.

Acked-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-10-05 07:58:36 -05:00
..
Makefile.objs block: move job APIs to separate files 2012-09-28 19:14:26 +02:00
blkdebug.c blkdebug: process all set_state rules in the old state 2012-09-28 19:40:56 +02:00
blkverify.c
bochs.c
cloop.c
commit.c iostatus: move BlockdevOnError declaration to QAPI 2012-09-28 19:40:26 +02:00
cow.c
curl.c
dmg.c
gluster.c block: Support GlusterFS as a QEMU block backend. 2012-09-28 17:58:12 +02:00
iscsi.c Merge remote-tracking branch 'kwolf/for-anthony' into staging 2012-09-25 16:06:16 -05:00
nbd.c
parallels.c
qcow.c block: qcow image file reopen 2012-09-24 15:15:12 +02:00
qcow2-cache.c
qcow2-cluster.c
qcow2-refcount.c
qcow2-snapshot.c
qcow2.c block: qcow2 image file reopen 2012-09-24 15:15:12 +02:00
qcow2.h
qed-check.c
qed-cluster.c
qed-gencb.c
qed-l2-cache.c
qed-table.c
qed.c
qed.h
raw-posix-aio.h
raw-posix.c
raw-win32.c
raw.c
rbd.c
sheepdog.c sheepdog: avoid a few buffer overruns 2012-10-05 07:58:36 -05:00
stream.c stream: add on-error argument 2012-09-28 19:40:56 +02:00
vdi.c block: vdi image file reopen 2012-09-24 15:15:12 +02:00
vmdk.c block: vmdk image file reopen 2012-09-24 15:15:12 +02:00
vpc.c block: vpc image file reopen 2012-09-24 15:15:12 +02:00
vvfat.c