summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-08-17 12:14:16 -0700
committerEric Anholt <eric@anholt.net>2007-08-22 08:59:10 -0700
commitbc2d516f16d94c805b4dfa8e5b9eef40ff0cbe98 (patch)
tree1695783a5ea73140a42cd53e82dd6f27fadcc546
parentfeb1b3e45513bd6eaa2e6a5ee536183f20d9cb68 (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.
-rw-r--r--exa/exa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exa/exa.c b/exa/exa.c
index aa42b9266..b2faf2f1c 100644
--- a/exa/exa.c
+++ b/exa/exa.c
@@ -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;
}