diff options
author | Fam Zheng <fam@euphon.net> | 2023-11-24 11:56:54 +0000 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-12-05 12:32:35 +0300 |
commit | 5cf2cf1f9f3f5b8e03ae6bad7604750eb8dd28d4 (patch) | |
tree | dc2497f54ce0c8eea2f5d69cba26aa852c0bf611 /module-common.c | |
parent | 6f51114b0ead04e51594d367328481ae21a55bcb (diff) |
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>
(cherry picked from commit 9fb7b350ba9816ebca8a7614fec486fd4269ab2d)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions