[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2] Fix piix4_pm savevm buffer overflow.
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH v2] Fix piix4_pm savevm buffer overflow. |
Date: |
Fri, 9 Nov 2012 10:23:03 +0100 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/acpi_piix4.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c
index 15275cf..1fd6def 100644
--- a/hw/acpi_piix4.c
+++ b/hw/acpi_piix4.c
@@ -235,7 +235,7 @@ static int vmstate_acpi_post_load(void *opaque, int
version_id)
{ \
.name = (stringify(_field)), \
.version_id = 0, \
- .num = GPE_LEN, \
+ .num = 1, \
.info = &vmstate_info_uint16, \
.size = sizeof(uint16_t), \
.flags = VMS_ARRAY | VMS_POINTER, \
@@ -249,7 +249,9 @@ static const VMStateDescription vmstate_gpe = {
.minimum_version_id_old = 1,
.fields = (VMStateField []) {
VMSTATE_GPE_ARRAY(sts, ACPIGPE),
+ VMSTATE_UNUSED(6),
VMSTATE_GPE_ARRAY(en, ACPIGPE),
+ VMSTATE_UNUSED(6),
VMSTATE_END_OF_LIST()
}
};
--
1.7.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH v2] Fix piix4_pm savevm buffer overflow.,
Gerd Hoffmann <=