]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commit
display: cirrus: ignore source pitch value as needed in blit_is_unsafe
authorBruce Rogers <brogers@suse.com>
Tue, 21 Feb 2017 18:54:38 +0000 (10:54 -0800)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 21 Feb 2017 19:08:50 +0000 (11:08 -0800)
commit57901a6693118bbe072ce149806e475c6f4bad5b
treefa7cbde9e3aaa5b8009c92a8846c02cc0b3b8492
parent15c0f1500fc078b6411d2c86842cb2f3fd7393c0
display: cirrus: ignore source pitch value as needed in blit_is_unsafe

Commit 4299b90 added a check which is too broad, given that the source
pitch value is not required to be initialized for solid fill operations.
This patch refines the blit_is_unsafe() check to ignore source pitch in
that case. After applying the above commit as a security patch, we
noticed the SLES 11 SP4 guest gui failed to initialize properly.

Signed-off-by: Bruce Rogers <brogers@suse.com>
Message-id: 20170109203520.5619-1-brogers@suse.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/cirrus_vga.c