diff options
| author | Fam Zheng <famz@redhat.com> | 2014-12-04 07:28:32 +0800 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2014-12-10 10:31:21 +0100 |
| commit | 03c3359dfc490eaf922f88955d6a8cc51a37ce92 (patch) | |
| tree | 64bbd7d73f08dccbb1f5cc901543caa341fec9fa /ui/sdl2-input.c | |
| parent | 73b7bcad439e0edaced05049897090cc10d84b5b (diff) | |
| download | focaccia-qemu-03c3359dfc490eaf922f88955d6a8cc51a37ce92.tar.gz focaccia-qemu-03c3359dfc490eaf922f88955d6a8cc51a37ce92.zip | |
vmdk: Check descriptor file length when reading it
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 <famz@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Don Koch <dkoch@verizon.com> Message-id: 1417649314-13704-5-git-send-email-famz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'ui/sdl2-input.c')
0 files changed, 0 insertions, 0 deletions