Lines Matching refs:cursor
4 Subject: [PATCH] ui/cursor: fix integer overflow in cursor_alloc
27 ui/cursor.c | 8 +++++++-
34 @@ -247,6 +247,13 @@ static QEMUCursor *qxl_cursor(PCIQXLDevice *qxl, QXLCursor *cursor,
37 c = cursor_alloc(cursor->header.width, cursor->header.height);
40 + qxl_set_guest_bug(qxl, "%s: cursor %ux%u alloc error", __func__,
41 + cursor->header.width, cursor->header.height);
45 c->hot_x = cursor->header.hot_spot_x;
46 c->hot_y = cursor->header.hot_spot_y;
47 switch (cursor->header.type) {
61 diff --git a/ui/cursor.c b/ui/cursor.c
63 --- a/ui/cursor.c
64 +++ b/ui/cursor.c