aboutsummaryrefslogtreecommitdiff
path: root/hw/display/sm501_template.h
diff options
context:
space:
mode:
authorPrasad J Pandit <pjp@fedoraproject.org>2016-09-08 18:15:54 +0530
committerGerd Hoffmann <kraxel@redhat.com>2016-09-13 09:24:35 +0200
commit167d97a3def77ee2dbf6e908b0ecbfe2103977db (patch)
treeaa11611ba71df6ccf0c06efb072dda184e396935 /hw/display/sm501_template.h
parent7263da78045dc91cc207f350911efe4259e99b3c (diff)
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>
Diffstat (limited to 'hw/display/sm501_template.h')
0 files changed, 0 insertions, 0 deletions