Fix from X.Org for CVE-2007-6428 - TOG-cup extension memory corruption.
This commit is contained in:
parent
868ab3f2e3
commit
af2f977c6b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user