From: Jindrich Makovicka <makovick@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] array overflow in hw/stellaris.c and hw/omap_dss.c
Date: Sat, 5 Jul 2008 10:48:22 +0200 [thread overview]
Message-ID: <20080705104822.377b403d@holly> (raw)
Hi,
there are some under-dimensioned arrays in $subj.
Index: stellaris.c
===================================================================
--- stellaris.c (revision 4846)
+++ stellaris.c (working copy)
@@ -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;
Index: omap_dss.c
===================================================================
--- omap_dss.c (revision 4846)
+++ omap_dss.c (working copy)
@@ -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;
Regards,
--
Jindrich Makovicka
next reply other threads:[~2008-07-05 8:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-05 8:48 Jindrich Makovicka [this message]
2008-08-22 9:01 ` [Qemu-devel] array overflow in hw/stellaris.c and hw/omap_dss.c Aurelien Jarno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080705104822.377b403d@holly \
--to=makovick@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).