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

This commit is contained in:
Matthieu Herrb 2008-01-17 15:28:03 +01:00
parent dd5e0f5cd5
commit 7dc1717ff0

View File

@ -176,6 +176,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;