pixman_trapezoid_valid(): Fix underflow when bottom is close to MIN_INT
authorRitesh Khadgaray <khadgaray@gmail.com>
Wed, 23 Oct 2013 21:29:07 +0000 (17:29 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Sat, 2 Nov 2013 00:24:57 +0000 (20:24 -0400)
commit5e14da97f16e421d084a9e735be21b1025150f0c
treee7b636ccc5ae2f5fd5d3ab8cc83469cd44394b75
parent2f876cf86718d3dd9b3b04ae9552530edafe58a1
pixman_trapezoid_valid(): Fix underflow when bottom is close to MIN_INT

If t->bottom is close to MIN_INT (probably invalid value), subtracting
top can lead to underflow which causes crashes.  Attached patch will
fix the issue.

This fixes bug 67484.
pixman/pixman.h