mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-04 04:00:13 +01:00
randr: unvalidated lengths in RandR extension swapped procs [CVE-2014-8101]
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 3df2fcf124)
Signed-off-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
parent
ea45001614
commit
df64ac7206
1 changed files with 4 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ SProcRRQueryVersion(ClientPtr client)
|
|||
{
|
||||
REQUEST(xRRQueryVersionReq);
|
||||
|
||||
REQUEST_SIZE_MATCH(xRRQueryVersionReq);
|
||||
swaps(&stuff->length);
|
||||
swapl(&stuff->majorVersion);
|
||||
swapl(&stuff->minorVersion);
|
||||
|
|
@ -38,6 +39,7 @@ SProcRRGetScreenInfo(ClientPtr client)
|
|||
{
|
||||
REQUEST(xRRGetScreenInfoReq);
|
||||
|
||||
REQUEST_SIZE_MATCH(xRRGetScreenInfoReq);
|
||||
swaps(&stuff->length);
|
||||
swapl(&stuff->window);
|
||||
return (*ProcRandrVector[stuff->randrReqType]) (client);
|
||||
|
|
@ -69,6 +71,7 @@ SProcRRSelectInput(ClientPtr client)
|
|||
{
|
||||
REQUEST(xRRSelectInputReq);
|
||||
|
||||
REQUEST_SIZE_MATCH(xRRSelectInputReq);
|
||||
swaps(&stuff->length);
|
||||
swapl(&stuff->window);
|
||||
swaps(&stuff->enable);
|
||||
|
|
@ -152,6 +155,7 @@ SProcRRConfigureOutputProperty(ClientPtr client)
|
|||
{
|
||||
REQUEST(xRRConfigureOutputPropertyReq);
|
||||
|
||||
REQUEST_AT_LEAST_SIZE(xRRConfigureOutputPropertyReq);
|
||||
swaps(&stuff->length);
|
||||
swapl(&stuff->output);
|
||||
swapl(&stuff->property);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue