mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-26 12:20:06 +01:00
Fix for CVE-2007-6428 - TOG-cup extension memory corruption.
This commit is contained in:
parent
59a3b83922
commit
4848d49d05
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue