Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reviewed-by: Max Reitz <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> Reviewed-by: Don Koch <[email protected]> Message-id: [email protected] Signed-off-by: Max Reitz <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
- Loading branch information