display: cirrus: ignore source pitch value as needed in blit_is_unsafe
commit913a87885f589d263e682c2eb6637c6e14538061
authorBruce Rogers <brogers@suse.com>
Mon, 9 Jan 2017 20:35:20 +0000 (9 13:35 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 11 Jan 2017 08:19:05 +0000 (11 09:19 +0100)
tree3fb70047e609b4b3c2d31b8f95da7860ad072ebc
parent85d9d044471f93c48c5c396f7e217b4ef12f69f8
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