Fix from X.Org for CVE-2007-6428 - TOG-cup extension memory corruption.

This commit is contained in:
matthieu 2008-01-17 15:43:06 +00:00
parent 868ab3f2e3
commit af2f977c6b

View File

@ -196,6 +196,9 @@ int ProcGetReservedColormapEntries(
REQUEST_SIZE_MATCH (xXcupGetReservedColormapEntriesReq);
if (stuff->screen >= screenInfo.numScreens)
return BadValue;
#ifndef HAVE_SPECIAL_DESKTOP_COLORS
citems[CUP_BLACK_PIXEL].pixel =
screenInfo.screens[stuff->screen]->blackPixel;