blkdebug: Catch bs->exact_filename overflow
commitde81d72d3d13a19edf4d461be3b0f5a877be0234
authorMax Reitz <mreitz@redhat.com>
Tue, 13 Jun 2017 17:20:05 +0000 (13 19:20 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 26 Jun 2017 12:54:46 +0000 (26 14:54 +0200)
treebe5a99c8ebeaa7f635e1bee248444e9b92dacc0e
parent4172a00373b2c81374293becc02b16b7f8c76659
blkdebug: Catch bs->exact_filename overflow

The bs->exact_filename field may not be sufficient to store the full
blkdebug 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-2-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/blkdebug.c