|
From: | Max Reitz |
Subject: | Re: [Qemu-devel] [PATCH v4 4/6] vmdk: Check descriptor file length when reading it |
Date: | Thu, 04 Dec 2014 10:00:25 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
On 2014-12-04 at 00:28, Fam Zheng wrote:
Since a too small file cannot be a valid VMDK image, and also since the buffer's first 4 bytes will be unconditionally examined by vmdk_open_sparse, let's error out the small file case to be clear. Signed-off-by: Fam Zheng <address@hidden> --- block/vmdk.c | 8 ++++++++ 1 file changed, 8 insertions(+)
Reviewed-by: Max Reitz <address@hidden>
[Prev in Thread] | Current Thread | [Next in Thread] |