]> git.proxmox.com Git - mirror_qemu.git/commit
blkverify: Catch bs->exact_filename overflow
authorMax Reitz <mreitz@redhat.com>
Tue, 13 Jun 2017 17:20:06 +0000 (19:20 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 26 Jun 2017 12:54:46 +0000 (14:54 +0200)
commit05cc758a3dfc79488d0a8eb7f5830a41871e78d0
tree28f70ee8318cfd620997a2f29136c027ff02fa67
parentde81d72d3d13a19edf4d461be3b0f5a877be0234
blkverify: Catch bs->exact_filename overflow

The bs->exact_filename field may not be sufficient to store the full
blkverify node filename. In this case, we should not generate a filename
at all instead of an unusable one.

Cc: qemu-stable@nongnu.org
Reported-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20170613172006.19685-3-mreitz@redhat.com
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/blkverify.c