diff options
author | Eric Anholt <eric@anholt.net> | 2007-08-17 12:14:16 -0700 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2008-05-16 17:20:08 +0300 |
commit | 458b487723a7beb792857c920e9be22c2ce4625d (patch) | |
tree | f42705e23d53d02380bce661c7658adb9142f2ea | |
parent | 2621380cf680941a0423d64d827fb3513545ebf5 (diff) |
Fix overly-restrictive integer overflow check in EXA pixmap creation.
The result was that at 32bpp, pixmaps of width 8192 or greater couldn't be
created, due to treating a pitch value as a width.
(cherry picked from commit bc2d516f16d94c805b4dfa8e5b9eef40ff0cbe98)
-rw-r--r-- | exa/exa.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -253,7 +253,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth) pExaScr->info->pixmapPitchAlign); pExaPixmap->fb_size = pExaPixmap->fb_pitch * h; - if (pExaPixmap->fb_pitch > 32767) { + if (pExaPixmap->fb_pitch > 131071) { fbDestroyPixmap(pPixmap); return NULL; } |