diff options
Diffstat (limited to 'exa/exa_migration.c')
-rw-r--r-- | exa/exa_migration.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/exa/exa_migration.c b/exa/exa_migration.c index 92ff394e2..22f5edd37 100644 --- a/exa/exa_migration.c +++ b/exa/exa_migration.c @@ -376,6 +376,9 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth) ScrnInfoPtr pScrn = XF86SCRNINFO(pScreen); ExaScreenPriv(pScreen); + if (w > 32767 || h > 32767) + return NullPixmap; + if (!pScrn->vtSema || pExaScr->swappedOut) { pPixmap = pExaScr->SavedCreatePixmap(pScreen, w, h, depth); } else { |