diff options
| author | Prasad J Pandit | 2016-10-18 09:45:17 +0200 |
|---|---|---|
| committer | Gerd Hoffmann | 2016-12-05 11:01:55 +0100 |
| commit | 4299b90e9ba9ce5ca9024572804ba751aa1a7e70 (patch) | |
| tree | 1ccd2cdab99576b791e53ad97f20a8cc9ae94984 /include/exec/user | |
| parent | virtio-gpu: fix memory leak in update_cursor_data_virgl (diff) | |
| download | qemu-4299b90e9ba9ce5ca9024572804ba751aa1a7e70.tar.gz qemu-4299b90e9ba9ce5ca9024572804ba751aa1a7e70.tar.xz qemu-4299b90e9ba9ce5ca9024572804ba751aa1a7e70.zip | |
display: cirrus: check vga bits per pixel(bpp) value
In Cirrus CLGD 54xx VGA Emulator, if cirrus graphics mode is VGA,
'cirrus_get_bpp' returns zero(0), which could lead to a divide
by zero error in while copying pixel data. The same could occur
via blit pitch values. Add check to avoid it.
Reported-by: Huawei PSIRT <psirt@huawei.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-id: 1476776717-24807-1-git-send-email-ppandit@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions
