fix for X Server Pixel Data Uninitialized Memory Information Disclosure
CVE-2020-14347 This vulnerability was discovered and reported to X.Org by Jan-Niklas Sohn working with Trend Micro Zero Day Initiative.
This commit is contained in:
parent
f22a219d59
commit
0a2f4bc72f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user