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.
This commit is contained in:
parent
feb1b3e455
commit
bc2d516f16
|
@ -253,7 +253,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
|
||||||
pExaScr->info->pixmapPitchAlign);
|
pExaScr->info->pixmapPitchAlign);
|
||||||
pExaPixmap->fb_size = pExaPixmap->fb_pitch * h;
|
pExaPixmap->fb_size = pExaPixmap->fb_pitch * h;
|
||||||
|
|
||||||
if (pExaPixmap->fb_pitch > 32767) {
|
if (pExaPixmap->fb_pitch > 131071) {
|
||||||
fbDestroyPixmap(pPixmap);
|
fbDestroyPixmap(pPixmap);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user