aboutsummaryrefslogtreecommitdiff
path: root/block-qcow.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-11 23:30:22 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-11 23:30:22 +0000
commitb5eff355460643d09e533024360fe0522f368c07 (patch)
tree14e2e496fc64fdfbb90bb8ca0e957f29eef6a1e7 /block-qcow.c
parent24988dc24169b581fe6563d7ed619bd50a2af40b (diff)
downloadqemu-b5eff355460643d09e533024360fe0522f368c07.zip
qemu-b5eff355460643d09e533024360fe0522f368c07.tar.gz
qemu-b5eff355460643d09e533024360fe0522f368c07.tar.bz2
Revert fix for CVE-2008-0928. Will be fixed in a different way later.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4041 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-qcow.c')
-rw-r--r--block-qcow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block-qcow.c b/block-qcow.c
index 7de8a3f..730ae67 100644
--- a/block-qcow.c
+++ b/block-qcow.c
@@ -95,7 +95,7 @@ static int qcow_open(BlockDriverState *bs, const char *filename, int flags)
int len, i, shift, ret;
QCowHeader header;
- ret = bdrv_file_open(&s->hd, filename, flags | BDRV_O_AUTOGROW);
+ ret = bdrv_file_open(&s->hd, filename, flags);
if (ret < 0)
return ret;
if (bdrv_pread(s->hd, 0, &header, sizeof(header)) != sizeof(header))