Fam Zheng
5cf2cf1f9f
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>
2023-12-05 12:32:35 +03:00
..
2023-06-26 09:50:00 -04:00
2023-06-20 10:01:30 +02:00
2023-05-10 14:16:54 +02:00
2023-02-24 15:09:39 +00:00
2023-04-25 13:17:28 +02:00
2023-08-03 11:28:43 -04:00
2023-02-23 19:49:33 +01:00
2023-02-23 19:49:33 +01:00
2023-05-10 14:16:54 +02:00
2023-06-01 07:34:03 -04:00
2023-02-23 19:49:14 +01:00
2023-06-28 09:46:24 +02:00
2023-06-28 09:46:27 +02:00
2023-05-19 19:12:12 +02:00
2023-05-30 17:29:35 +02:00
2023-04-11 16:38:56 +02:00
2023-05-10 14:16:53 +02:00
2023-05-19 19:12:12 +02:00
2023-05-19 19:12:12 +02:00
2023-05-30 17:37:26 +02:00
2023-02-23 19:49:32 +01:00
2023-03-30 15:03:36 +02:00
2023-06-28 09:46:28 +02:00
2023-04-24 13:53:44 -04:00
2023-11-09 16:39:13 +03:00
2023-04-25 13:17:28 +02:00
2023-04-11 16:38:56 +02:00
2023-06-02 12:27:19 -05:00
2023-06-28 08:46:26 +02:00
2023-06-01 07:34:03 -04:00
2023-07-27 09:48:16 -04:00
2023-05-30 17:37:26 +02:00
2023-06-01 07:34:03 -04:00
2023-06-20 10:01:30 +02:00
2023-05-30 17:21:23 +02:00
2023-07-19 15:26:13 -05:00
2023-06-02 12:27:19 -05:00
2023-02-01 16:52:32 +01:00
2023-11-09 16:39:13 +03:00
2023-11-09 16:39:13 +03:00
2023-06-28 09:46:33 +02:00
2023-06-01 07:34:03 -04:00
2023-04-11 16:38:56 +02:00
2023-01-19 10:18:28 +01:00
2023-11-01 12:51:23 +03:00
2023-05-15 08:18:10 -04:00
2023-06-28 09:46:32 +02:00
2023-01-20 07:24:28 +01:00
2023-11-09 16:39:13 +03:00
2023-06-28 09:46:34 +02:00
2023-04-25 13:17:28 +02:00
2023-04-25 13:17:28 +02:00
2023-06-28 09:46:34 +02:00
2023-06-28 09:46:32 +02:00
2023-06-28 09:46:34 +02:00
2023-06-28 09:46:20 +02:00
2023-06-28 09:46:34 +02:00
2023-06-28 09:46:34 +02:00
2023-02-23 19:49:17 +01:00
2023-05-10 14:16:54 +02:00
2023-06-28 09:46:34 +02:00
2023-02-23 19:49:35 +01:00
2023-04-11 16:38:56 +02:00
2023-02-23 19:49:21 +01:00
2023-05-30 17:37:26 +02:00
2023-05-19 19:12:12 +02:00
2023-02-23 19:49:33 +01:00
2023-06-01 07:34:03 -04:00
2023-11-09 16:39:13 +03:00
2023-06-28 09:46:30 +02:00
2023-06-28 09:46:30 +02:00
2023-06-28 09:46:30 +02:00
2023-12-05 12:32:35 +03:00
2023-06-28 09:46:23 +02:00
2023-04-25 13:17:28 +02:00
2023-05-30 17:37:26 +02:00
2023-01-20 07:24:28 +01:00