]> xenbits.xensource.com Git - qemu-upstream-4.5-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:19:03 +0000 (11:19 -0800)
commitd75658d557b55d7c350d485c1bde8c43e6128739
tree1b4ef20b3fc0e6614a6bc4b554e8fd5d22b8720e
parent37a460ca696381bb14dfbf012d7a062c7c05c324
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