blob: 69fa89140f797758467993a43456bd1940ad37b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$OpenBSD$
Patch for CVE-2020-14347
Index: dix/pixmap.c
--- dix/pixmap.c.orig
+++ dix/pixmap.c
@@ -117,7 +117,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;
|