From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur1eo-0007yc-EL for qemu-devel@nongnu.org; Mon, 24 Jun 2013 03:57:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ur1en-0007DY-JH for qemu-devel@nongnu.org; Mon, 24 Jun 2013 03:57:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur1en-0007DM-Ai for qemu-devel@nongnu.org; Mon, 24 Jun 2013 03:57:49 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5O7vmJm018451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 24 Jun 2013 03:57:48 -0400 From: Gerd Hoffmann Date: Mon, 24 Jun 2013 09:57:45 +0200 Message-Id: <1372060666-18182-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1372060666-18182-1-git-send-email-kraxel@redhat.com> References: <1372060666-18182-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] qxl: fix Coverity scan SIGN_EXTENSION error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Markus Armbruster Cc: Markus Armbruster Signed-off-by: Gerd Hoffmann --- hw/display/qxl-render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/qxl-render.c b/hw/display/qxl-render.c index f511a62..269b1a7 100644 --- 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"); -- 1.7.9.7