aboutsummaryrefslogtreecommitdiff
path: root/hw/pci.h
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-04 22:36:38 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-04 22:36:38 +0000
commitb2b183c2700d40210df51ff3ec9a2568ce9f5a43 (patch)
tree8435d2a51180a3800ad42ac130ceb1b947b2623a /hw/pci.h
parent4dc822d726376fd4369089f04eb8605d2f94b74f (diff)
downloadqemu-b2b183c2700d40210df51ff3ec9a2568ce9f5a43.zip
qemu-b2b183c2700d40210df51ff3ec9a2568ce9f5a43.tar.gz
qemu-b2b183c2700d40210df51ff3ec9a2568ce9f5a43.tar.bz2
do boundary check based on absolute value (Glauber Costa)
For backward operations, dstpitch and srcpitch can be negative. This leads BLTUNSAFE macro into an overflow, and as a result, it avoids performing operations that are perfectly valid. The visible effect that led to that patch was the gnome-panel bar in Fedora10. Before this patch, you could see garbage clobbering a big portion of the bar. After this patch, this garbage is gone. Signed-off-by: Glauber Costa <glommer@redhat.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5880 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pci.h')
0 files changed, 0 insertions, 0 deletions