[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [qemu-xen staging-4.10] vga: add ram_addr_t cast
commit 1c458b7e4326c662791b3840c600ccfba22ed3d8 Author: Gerd Hoffmann <kraxel@xxxxxxxxxx> AuthorDate: Tue Oct 10 16:13:23 2017 +0200 Commit: Anthony PERARD <anthony.perard@xxxxxxxxxx> CommitDate: Mon Apr 1 17:09:57 2019 +0100 vga: add ram_addr_t cast Reported by Coverity. Fixes: CID 1381409 Signed-off-by: Gerd Hoffmann <kraxel@xxxxxxxxxx> Message-id: 20171010141323.14049-4-kraxel@xxxxxxxxxx (cherry picked from commit b0898b42ef099bc125db1fbf62b7f02b505ef3a2) --- 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 b1cdf36cfa..b6a3b95c93 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; -- generated by git-patchbot for /home/xen/git/qemu-xen.git#staging-4.10 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |