Revision f2d928d4 hw/vmware_vga.c
b/hw/vmware_vga.c | ||
---|---|---|
562 | 562 |
cursor.height = y = vmsvga_fifo_read(s); |
563 | 563 |
vmsvga_fifo_read(s); |
564 | 564 |
cursor.bpp = vmsvga_fifo_read(s); |
565 |
|
|
566 |
if (SVGA_BITMAP_SIZE(x, y) > sizeof cursor.mask || |
|
567 |
SVGA_PIXMAP_SIZE(x, y, cursor.bpp) > sizeof cursor.image) { |
|
568 |
args = SVGA_BITMAP_SIZE(x, y) + SVGA_PIXMAP_SIZE(x, y, cursor.bpp); |
|
569 |
goto badcmd; |
|
570 |
} |
|
571 |
|
|
565 | 572 |
for (args = 0; args < SVGA_BITMAP_SIZE(x, y); args ++) |
566 | 573 |
cursor.mask[args] = vmsvga_fifo_read_raw(s); |
567 | 574 |
for (args = 0; args < SVGA_PIXMAP_SIZE(x, y, cursor.bpp); args ++) |
Also available in: Unified diff