Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:10041
qemu.openSUSE_Leap_42.3_Update
0154-vga-add-ram_addr_t-cast.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0154-vga-add-ram_addr_t-cast.patch of Package qemu.openSUSE_Leap_42.3_Update
From d83ee940d9ab15f0ac2394ac942e5d3e076fde98 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann <kraxel@redhat.com> Date: Tue, 10 Oct 2017 16:13:23 +0200 Subject: [PATCH] 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 (cherry picked from commit b0898b42ef099bc125db1fbf62b7f02b505ef3a2) [BR: Support for BSC#1084604 (and other useful vga fixes)] Signed-off-by: Bruce Rogers <brogers@suse.com> --- hw/display/vga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/vga.c b/hw/display/vga.c index 2a7cc61da5..1a263e723c 100644 --- a/hw/display/vga.c +++ b/hw/display/vga.c @@ -1488,7 +1488,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;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor