~ubuntu-branches/debian/squeeze/pixman/squeeze

« back to all changes in this revision

Viewing changes to pixman/pixman.h

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2013-12-16 18:44:45 UTC
  • Revision ID: package-import@ubuntu.com-20131216184445-le400zcelgitlxm5
Tags: 0.16.4-1+deb6u1
pixman_trapezoid_valid(): Fix underflow when bottom is close to MIN_INT
Addresses CVE-2013-6425

Show diffs side-by-side

added added

removed removed

Lines of Context:
838
838
#define pixman_trapezoid_valid(t)                                  \
839
839
    ((t)->left.p1.y != (t)->left.p2.y &&                           \
840
840
     (t)->right.p1.y != (t)->right.p2.y &&                         \
841
 
     (int) ((t)->bottom - (t)->top) > 0)
 
841
     ((t)->bottom > (t)->top))
842
842
 
843
843
struct pixman_span_fix
844
844
{