summary refs log tree commit diff stats
path: root/util/oslib-posix.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-10-11 10:43:14 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-10-17 09:59:00 +0200
commiteb38e1bc3740725ca29a535351de94107ec58d51 (patch)
treedd071fd63e7677672aad985e719672e267f4ded5 /util/oslib-posix.c
parentb0898b42ef099bc125db1fbf62b7f02b505ef3a2 (diff)
downloadfocaccia-qemu-eb38e1bc3740725ca29a535351de94107ec58d51.tar.gz
focaccia-qemu-eb38e1bc3740725ca29a535351de94107ec58d51.zip
cirrus: fix oob access in mode4and5 write functions
Move dst calculation into the loop, so we apply the mask on each
interation and will not overflow vga memory.

Cc: Prasad J Pandit <pjp@fedoraproject.org>
Reported-by: Niu Guoxiang <niuguoxiang@huawei.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20171011084314.21752-1-kraxel@redhat.com
Diffstat (limited to 'util/oslib-posix.c')
0 files changed, 0 insertions, 0 deletions