qcow2: Prevent backing file names longer than 1023
authorMax Reitz <mreitz@redhat.com>
Wed, 6 Apr 2016 16:32:48 +0000 (18:32 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 12 Apr 2016 16:06:51 +0000 (18:06 +0200)
commit4e876bcf2bdb3a7353df92d19bfec0afd1650bc4
tree3fc1cc0bb4d4d77595d034817d0e48378bcde5e2
parent40a99aace3f9ffd65af07a89c381db3550b22316
qcow2: Prevent backing file names longer than 1023

We reject backing file names with a length of more than 1023 characters
when opening a qcow2 file, so we should not produce such files
ourselves.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c