[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/10] qcow2: don't leak buffer for unexpected qcow_
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 01/10] qcow2: don't leak buffer for unexpected qcow_version in header |
Date: |
Fri, 25 May 2012 19:38:45 +0200 |
From: Jim Meyering <address@hidden>
Signed-off-by: Jim Meyering <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
block/qcow2.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/block/qcow2.c b/block/qcow2.c
index 655799c..c2e49cd 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -919,7 +919,8 @@ int qcow2_update_header(BlockDriverState *bs)
ret = sizeof(*header);
break;
default:
- return -EINVAL;
+ ret = -EINVAL;
+ goto fail;
}
buf += ret;
--
1.7.6.5
- [Qemu-devel] [PULL 00/10] Block patches for 1.1, Kevin Wolf, 2012/05/25
- [Qemu-devel] [PATCH 01/10] qcow2: don't leak buffer for unexpected qcow_version in header,
Kevin Wolf <=
- [Qemu-devel] [PATCH 02/10] qemu-img: Explain how rebase operation can be used to perform a 'diff' operation., Kevin Wolf, 2012/05/25
- [Qemu-devel] [PATCH 03/10] sheepdog: mark image as snapshot when tag is specified, Kevin Wolf, 2012/05/25
- [Qemu-devel] [PATCH 04/10] sheepdog: return -errno on error, Kevin Wolf, 2012/05/25
- [Qemu-devel] [PATCH 06/10] qcow2: Check qcow2_alloc_clusters_at() return value, Kevin Wolf, 2012/05/25
- [Qemu-devel] [PATCH 05/10] sheepdog: use heap instead of stack for BDRVSheepdogState, Kevin Wolf, 2012/05/25
- [Qemu-devel] [PATCH 09/10] fdc: fix media detection, Kevin Wolf, 2012/05/25
- [Qemu-devel] [PATCH 08/10] fdc: floppy drive should be visible after start without media, Kevin Wolf, 2012/05/25
- [Qemu-devel] [PATCH 07/10] qemu-iotests: mark 035 qcow2-only, Kevin Wolf, 2012/05/25
- [Qemu-devel] [PATCH 10/10] fdc-test: introduced qtest no_media_on_start and cmos qtest for floppy, Kevin Wolf, 2012/05/25
- Re: [Qemu-devel] [PULL 00/10] Block patches for 1.1, Anthony Liguori, 2012/05/29