qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5064] array overflow in hw/stellaris.c and hw/omap_dss.c


From: Aurelien Jarno
Subject: [Qemu-devel] [5064] array overflow in hw/stellaris.c and hw/omap_dss.c
Date: Fri, 22 Aug 2008 08:57:19 +0000

Revision: 5064
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5064
Author:   aurel32
Date:     2008-08-22 08:57:19 +0000 (Fri, 22 Aug 2008)

Log Message:
-----------
array overflow in hw/stellaris.c and hw/omap_dss.c

(Jindrich Makovicka)

Modified Paths:
--------------
    trunk/hw/omap_dss.c
    trunk/hw/stellaris.c

Modified: trunk/hw/omap_dss.c
===================================================================
--- trunk/hw/omap_dss.c 2008-08-22 08:57:09 UTC (rev 5063)
+++ trunk/hw/omap_dss.c 2008-08-22 08:57:19 UTC (rev 5064)
@@ -53,7 +53,7 @@
         uint32_t control;
         uint32_t config;
         uint32_t capable;
-        uint32_t timing[3];
+        uint32_t timing[4];
         int line;
         uint32_t bg[2];
         uint32_t trans[2];
@@ -148,6 +148,7 @@
     s->dispc.timing[0] = 0;
     s->dispc.timing[1] = 0;
     s->dispc.timing[2] = 0;
+    s->dispc.timing[3] = 0;
     s->dispc.line = 0;
     s->dispc.bg[0] = 0;
     s->dispc.bg[1] = 0;

Modified: trunk/hw/stellaris.c
===================================================================
--- trunk/hw/stellaris.c        2008-08-22 08:57:09 UTC (rev 5063)
+++ trunk/hw/stellaris.c        2008-08-22 08:57:19 UTC (rev 5064)
@@ -1308,8 +1308,8 @@
     static const int gpio_irq[7] = {0, 1, 2, 3, 4, 30, 31};
 
     qemu_irq *pic;
-    qemu_irq *gpio_in[5];
-    qemu_irq *gpio_out[5];
+    qemu_irq *gpio_in[7];
+    qemu_irq *gpio_out[7];
     qemu_irq adc;
     int sram_size;
     int flash_size;






reply via email to

[Prev in Thread] Current Thread [Next in Thread]