diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-10-10 16:13:23 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-10-17 09:59:00 +0200 |
commit | b0898b42ef099bc125db1fbf62b7f02b505ef3a2 (patch) | |
tree | fc1eb1356dc2a73c2b44b715e783298abfc015c2 /hw | |
parent | 28f77de26a4f9995458ddeb9d34bb06c0193bdc9 (diff) |
vga: add ram_addr_t cast
Reported by Coverity.
Fixes: CID 1381409
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20171010141323.14049-4-kraxel@redhat.com
Diffstat (limited to 'hw')
-rw-r--r-- | hw/display/vga.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/vga.c b/hw/display/vga.c index 1afceb6f16..1d19f6bc48 100644 --- a/hw/display/vga.c +++ b/hw/display/vga.c @@ -1485,7 +1485,7 @@ static void vga_draw_graphic(VGACommonState *s, int full_update) disp_width = width; region_start = (s->start_addr * 4); - region_end = region_start + s->line_offset * height; + region_end = region_start + (ram_addr_t)s->line_offset * height; if (region_end > s->vbe_size) { /* wraps around (can happen with cirrus vbe modes) */ region_start = 0; |