diff options
author | Thomas Huth | 2021-10-12 10:27:02 +0200 |
---|---|---|
committer | Hanna Reitz | 2021-11-02 12:47:51 +0100 |
commit | 7da9623cc078229caf07c290e16401ccdb9408d2 (patch) | |
tree | 8449963059375c2587cf31aa6dab43d893816339 /python/qemu | |
parent | vmdk: allow specification of tools version (diff) | |
download | qemu-7da9623cc078229caf07c290e16401ccdb9408d2.tar.gz qemu-7da9623cc078229caf07c290e16401ccdb9408d2.tar.xz qemu-7da9623cc078229caf07c290e16401ccdb9408d2.zip |
block/vpc: Add a sanity check that fixed-size images have the right type
The code in vpc.c uses BDRVVPCState->footer.type in various places
to decide whether the image is a fixed-size (VHD_FIXED) or a dynamic
(VHD_DYNAMIC) image. However, we never check that this field really
contains VHD_FIXED if we detected a fixed size image in vpc_open(),
so a wrong value here could cause quite some trouble during runtime.
Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20211012082702.792259-1-thuth@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'python/qemu')
0 files changed, 0 insertions, 0 deletions