summary refs log tree commit diff stats
path: root/include/qemu/vhost-user-server.h
diff options
context:
space:
mode:
authorFam Zheng <fam@euphon.net>2023-11-24 11:56:54 +0000
committerKevin Wolf <kwolf@redhat.com>2023-11-28 14:56:32 +0100
commit9fb7b350ba9816ebca8a7614fec486fd4269ab2d (patch)
treec0ba0104aabf15e05d03faf277e5f1ca126f28c2 /include/qemu/vhost-user-server.h
parent3b7094fe8329c5c7bb0d685e1876aa30f59bece6 (diff)
downloadfocaccia-qemu-9fb7b350ba9816ebca8a7614fec486fd4269ab2d.tar.gz
focaccia-qemu-9fb7b350ba9816ebca8a7614fec486fd4269ab2d.zip
vmdk: Don't corrupt desc file in vmdk_write_cid
If the text description file is larger than DESC_SIZE, we force the last
byte in the buffer to be 0 and write it out.

This results in a corruption.

Try to allocate a big buffer in this case.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1923

Signed-off-by: Fam Zheng <fam@euphon.net>
Message-ID: <20231124115654.3239137-1-fam@euphon.net>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/qemu/vhost-user-server.h')
0 files changed, 0 insertions, 0 deletions