qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] Fix piix4_pm savevm buffer overflow.
@ 2012-11-09  9:23 Gerd Hoffmann
  0 siblings, 0 replies; only message in thread
From: Gerd Hoffmann @ 2012-11-09  9:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, Gerd Hoffmann

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-09  9:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-09  9:23 [Qemu-devel] [PATCH v2] Fix piix4_pm savevm buffer overflow Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).