aboutsummaryrefslogtreecommitdiffstats
path: root/main/xorg-server/CVE-2020-14347.patch
blob: 7adec3a16e7d21de06f0bdb1a1e0f89586cd05c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/dix/pixmap.c b/dix/pixmap.c
index 1186d7dbb..5a0146bbb 100644
--- a/dix/pixmap.c
+++ b/dix/pixmap.c
@@ -116,7 +116,7 @@ AllocatePixmap(ScreenPtr pScreen, int pixDataSize)
     if (pScreen->totalPixmapSize > ((size_t) - 1) - pixDataSize)
         return NullPixmap;
 
-    pPixmap = malloc(pScreen->totalPixmapSize + pixDataSize);
+    pPixmap = calloc(1, pScreen->totalPixmapSize + pixDataSize);
     if (!pPixmap)
         return NullPixmap;