Fam Zheng
03c3359dfc
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>
2014-12-10 10:31:21 +01:00
..
2014-12-10 10:31:13 +01:00
2014-10-20 13:41:27 +02:00
2014-11-03 11:41:49 +00:00
2014-12-10 10:31:11 +01:00
2014-10-20 13:41:27 +02:00
2014-12-10 10:31:12 +01:00
2014-08-20 11:51:28 +02:00
2014-08-15 15:07:15 +02:00
2014-11-03 11:41:49 +00:00
2014-11-03 11:41:47 +00:00
2014-08-15 15:07:15 +02:00
2014-09-12 15:43:06 +02:00
2014-11-03 18:34:09 +00:00
2014-10-20 13:41:27 +02:00
2014-11-03 11:41:48 +00:00
2014-11-03 11:41:49 +00:00
2014-06-04 09:56:11 +02:00
2014-06-04 09:56:11 +02:00
2014-10-20 13:41:26 +02:00
2014-12-10 10:31:19 +01:00
2014-10-20 13:41:27 +02:00
2014-11-03 09:48:41 +00:00
2014-12-10 10:31:09 +01:00
2014-08-20 11:51:28 +02:00
2014-12-10 10:31:20 +01:00
2014-11-03 11:41:49 +00:00
2014-11-03 11:41:47 +00:00
2014-12-10 10:31:20 +01:00
2014-11-03 11:41:49 +00:00
2014-10-20 13:41:26 +02:00
2014-08-20 11:51:28 +02:00
2011-08-20 23:01:08 -05:00
2014-10-20 13:41:27 +02:00
2012-03-12 15:14:06 +01:00
2014-10-20 13:41:27 +02:00
2014-10-20 13:41:27 +02:00
2014-10-20 13:41:27 +02:00
2014-10-20 13:41:27 +02:00
2014-12-10 10:31:19 +01:00
2014-10-20 13:41:27 +02:00
2014-12-10 10:31:20 +01:00
2014-12-10 10:31:19 +01:00
2014-11-03 09:48:41 +00:00
2014-10-20 13:41:27 +02:00
2014-11-03 09:48:42 +00:00
2014-10-03 10:30:33 +01:00
2014-11-03 11:41:49 +00:00
2014-12-10 10:31:20 +01:00
2014-08-15 15:07:14 +02:00
2014-08-20 11:51:28 +02:00
2014-10-20 13:41:26 +02:00
2014-08-15 15:07:14 +02:00
2014-12-10 10:31:21 +01:00
2014-12-10 10:31:21 +01:00
2014-12-10 10:31:19 +01:00
2014-10-20 13:41:27 +02:00