aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-04-13 12:44:34 +0300
committerAvi Kivity <avi@redhat.com>2009-04-13 12:44:34 +0300
commit094b1df534fdb91e4678bcbdab4a96dd9e3e9e62 (patch)
tree6480a49f1c91e31878e6ca68cf9af269df6f6041
parentb75d5f4d223b019de8171760d8371731bfe8041f (diff)
Fix vga segfaults and corruption with large memorykvm-85rc6
Merge from qemu dropped some size fixes. Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r--hw/vga.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/vga.c b/hw/vga.c
index 8c6a648e0..f0b690a7e 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1588,11 +1588,12 @@ static void vga_sync_dirty_bitmap(VGAState *s)
*/
static void vga_draw_graphic(VGAState *s, int full_update)
{
- int y1, y, update, page_min, page_max, linesize, y_start, double_scan, mask, depth;
- int width, height, shift_control, line_offset, page0, page1, bwidth, bits;
+ int y1, y, update, linesize, y_start, double_scan, mask, depth;
+ int width, height, shift_control, line_offset, bwidth, bits;
int disp_width, multi_scan, multi_run;
uint8_t *d;
uint32_t v, addr1, addr;
+ long page0, page1, page_min, page_max;
vga_draw_line_func *vga_draw_line;
full_update |= update_basic_params(s);