projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
576156f
)
qxl: fix Coverity scan SIGN_EXTENSION error
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 3 Jun 2013 08:36:54 +0000
(10:36 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 24 Jun 2013 06:23:09 +0000
(08:23 +0200)
Cc: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/qxl-render.c
patch
|
blob
|
history
diff --git
a/hw/display/qxl-render.c
b/hw/display/qxl-render.c
index f511a622c67021e616ac979fa4efa0387fffae99..269b1a75687b412ea34031235a1680adc4a65f42 100644
(file)
--- a/
hw/display/qxl-render.c
+++ b/
hw/display/qxl-render.c
@@
-199,7
+199,7
@@
static QEMUCursor *qxl_cursor(PCIQXLDevice *qxl, QXLCursor *cursor)
c->hot_y = cursor->header.hot_spot_y;
switch (cursor->header.type) {
case SPICE_CURSOR_TYPE_ALPHA:
- size =
cursor->header.width * cursor->header.height * sizeof(uint32_t)
;
+ size =
sizeof(uint32_t) * cursor->header.width * cursor->header.height
;
memcpy(c->data, cursor->chunk.data, size);
if (qxl->debug > 2) {
cursor_print_ascii_art(c, "qxl/alpha");