Prasad J Pandit 167d97a3de vmsvga: correct bitmap and pixmap size checks
When processing svga command DEFINE_CURSOR in vmsvga_fifo_run,
the computed BITMAP and PIXMAP size are checked against the
'cursor.mask[]' and 'cursor.image[]' array sizes in bytes.
Correct these checks to avoid OOB memory access.

Reported-by: Qinghao Tang <luodalongde@gmail.com>
Reported-by: Li Qiang <liqiang6-s@360.cn>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-id: 1473338754-15430-1-git-send-email-ppandit@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2016-09-13 09:24:35 +02:00
..
2016-09-08 18:05:21 +04:00
2016-09-08 18:05:21 +04:00
2016-09-08 18:05:21 +04:00
2016-09-08 18:05:22 +04:00
2016-06-17 16:33:48 +10:00
2016-09-08 18:05:21 +04:00
2016-06-14 15:59:13 +01:00
2016-09-09 20:58:34 +03:00
2016-09-08 18:05:21 +04:00
2016-09-08 18:05:21 +04:00
2016-05-18 15:04:27 +03:00
2016-09-08 18:05:22 +04:00
2016-09-08 18:05:21 +04:00
2016-09-08 11:28:12 +01:00
2016-07-29 00:07:09 +03:00
2016-01-29 15:07:25 +00:00
2016-09-08 18:05:22 +04:00
2016-06-24 05:13:57 +03:00
2015-12-22 18:39:19 +02:00