summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2017-07-26 16:00:38 +0200
committerAdam Jackson <ajax@redhat.com>2017-09-13 11:02:52 -0400
commit9869dcb349b49f6d4cc2fab5d927cd8b1d1f463c (patch)
treecf46cf1f15ae07c13e622842d4e8267e8d88c75b /dix
parentbd353e9b84e013fc34ed730319d5b63d20977903 (diff)
glamor: Avoid overflow between box32 and box16 box
glamor_compute_transform_clipped_regions() uses a temporary box32 internally which is copied back to a box16 to init the regions16, thus causing a potential overflow. If an overflow occurs, the given region is invalid and the pixmap init region will fail. Simply check that the coordinates won't overflow when copying back to the box16, avoiding a crash later down the line in glamor. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=101894 Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Tested-by: Fabrice Bellet <fabrice@bellet.info> Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'dix')
0 files changed, 0 insertions, 0 deletions