All of lore.kernel.org
 help / color / mirror / Atom feed
From: laurent@lvivier.info
To: qemu-devel@nongnu.org
Subject: RE: [Qemu-devel] [6336] DisplayState interface change (StefanoStabellini)
Date: Fri, 16 Jan 2009 12:13:25 +0100	[thread overview]
Message-ID: <20751876.567371232104405516.JavaMail.servlet@kundenserver> (raw)

>Revision: 6336
>          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6336
>Author:   aliguori
>Date:     2009-01-15 22:14:11 +0000 (Thu, 15 Jan 2009)
>
>Log Message:
>-----------
>DisplayState interface change (Stefano Stabellini)

This patch breaks qemu-system-ppc:

in update_palette256(), s->rgb_to_pixel() is used unitialized.

update_palette256() is called by vga_draw_graphic() whereas s->rgb_to_pixel() is initialized later in the function.

This patch correct the problem.

Signed-off-by: Laurent Vivier <Laurent@lvivier.info>

diff --git a/hw/vga.c b/hw/vga.c
index f2d98b0..769faea 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1838,6 +1838,7 @@ static void vga_update_display(void *opaque)
             s->graphic_mode = graphic_mode;
             full_update = 1;
         }
+        s->rgb_to_pixel = rgb_to_pixel_dup_table[get_depth_index(s->ds)];
         switch(graphic_mode) {
         case GMODE_TEXT:
             vga_draw_text(s, full_update);

             reply	other threads:[~2009-01-16 11:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-16 11:13 laurent [this message]
2009-01-16 12:59 ` [Qemu-devel] [6336] DisplayState interface change (StefanoStabellini) Stefano Stabellini
2009-01-16 19:13   ` Aurelien Jarno
2009-01-16 19:46   ` Aurelien Jarno
2009-01-19 11:22     ` Stefano Stabellini

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=20751876.567371232104405516.JavaMail.servlet@kundenserver \
    --to=laurent@lvivier.info \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.