[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 5/7] ui/console: fix OVERFLOW_BEFORE_WIDEN
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 5/7] ui/console: fix OVERFLOW_BEFORE_WIDEN |
Date: |
Thu, 12 Mar 2015 10:00:23 +0100 |
From: Gonglei <address@hidden>
Signed-off-by: Gonglei <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
ui/console.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/console.c b/ui/console.c
index 87af6b5..b15ca87 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1285,9 +1285,9 @@ DisplaySurface *qemu_create_displaysurface_guestmem(int
width, int height,
linesize = width * PIXMAN_FORMAT_BPP(format) / 8;
}
- size = linesize * height;
+ size = (hwaddr)linesize * height;
data = cpu_physical_memory_map(addr, &size, 0);
- if (size != linesize * height) {
+ if (size != (hwaddr)linesize * height) {
cpu_physical_memory_unmap(data, size, 0, 0);
return NULL;
}
--
1.8.3.1
- [Qemu-devel] [PULL 0/7] vnc patch queue., Gerd Hoffmann, 2015/03/12
- [Qemu-devel] [PULL 2/7] vnc: remove dead code, Gerd Hoffmann, 2015/03/12
- [Qemu-devel] [PULL 6/7] vnc: avoid possible file handler leak, Gerd Hoffmann, 2015/03/12
- [Qemu-devel] [PULL 7/7] vnc: fix segmentation fault when invalid vnc parameters are specified, Gerd Hoffmann, 2015/03/12
- [Qemu-devel] [PULL 5/7] ui/console: fix OVERFLOW_BEFORE_WIDEN,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 3/7] vnc: switch to inet_listen_opts, Gerd Hoffmann, 2015/03/12
- [Qemu-devel] [PULL 4/7] ui: fix regression in x509verify parameter for VNC server, Gerd Hoffmann, 2015/03/12
- [Qemu-devel] [PULL 1/7] vnc: drop display+ws_display from VncDisplay, Gerd Hoffmann, 2015/03/12
- Re: [Qemu-devel] [PULL 0/7] vnc patch queue., Peter Maydell, 2015/03/12