qemu/block
Jeff Cody 03c698f0a2 block/sheepdog: fix argument passed to qemu_strtoul()
The function qemu_strtoul() reads 'unsigned long' sized data,
which is larger than uint32_t on 64-bit machines.

Even though the snap_id field in the header is 32-bits, we must
accommodate the full size in qemu_strtoul().

This patch also adds more meaningful error handling to the
qemu_strtoul() call, and subsequent results.

Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
Message-id: e56fc50abedd9a112e0683342c8eafda063cd2f9.1456935548.git.jcody@redhat.com
2016-03-16 13:25:29 -04:00
..
accounting.c
archipelago.c
backup.c backup: Use Bitmap to replace "s->bitmap" 2016-03-14 17:35:05 +01:00
blkdebug.c
blkverify.c
block-backend.c block: Introduce blk_set_allow_write_beyond_eof() 2016-03-14 16:46:43 +01:00
bochs.c
cloop.c
commit.c
curl.c
dirty-bitmap.c block: Move block dirty bitmap code to separate files 2016-03-14 17:35:05 +01:00
dmg.c
gluster.c
io.c
iscsi.c
linux-aio.c
Makefile.objs block: Move block dirty bitmap code to separate files 2016-03-14 17:35:05 +01:00
mirror.c
nbd-client.c
nbd-client.h
nbd.c
nfs.c
null.c
parallels.c parallels: Use BB functions in .bdrv_create() 2016-03-14 16:46:43 +01:00
qapi.c block/qapi: Include empty drives in query-blockstats 2016-03-14 16:46:42 +01:00
qcow2-cache.c
qcow2-cluster.c
qcow2-refcount.c
qcow2-snapshot.c
qcow2.c qcow2: Use BB functions in .bdrv_create() 2016-03-14 16:46:43 +01:00
qcow2.h
qcow.c qcow: Use BB functions in .bdrv_create() 2016-03-14 16:46:43 +01:00
qed-check.c
qed-cluster.c
qed-gencb.c
qed-l2-cache.c
qed-table.c
qed.c qed: Use BB functions in .bdrv_create() 2016-03-14 16:46:43 +01:00
qed.h
quorum.c quorum: Fix crash in quorum_aio_cb() 2016-03-14 17:35:06 +01:00
raw_bsd.c
raw-aio.h
raw-posix.c
raw-win32.c
rbd.c
sheepdog.c block/sheepdog: fix argument passed to qemu_strtoul() 2016-03-16 13:25:29 -04:00
snapshot.c
ssh.c
stream.c
throttle-groups.c
vdi.c vdi: Use BB functions in .bdrv_create() 2016-03-14 16:46:43 +01:00
vhdx-endian.c
vhdx-log.c
vhdx.c vhdx: Use BB functions in .bdrv_create() 2016-03-14 16:46:43 +01:00
vhdx.h
vmdk.c vmdk: Use BB functions in .bdrv_create() 2016-03-14 16:46:43 +01:00
vpc.c vpc: Use BB functions in .bdrv_create() 2016-03-14 16:46:44 +01:00
vvfat.c
win32-aio.c
write-threshold.c