(submit/fixup-req-len) Xext: shape: fix length checking with bigreq
The authorative source of the request frame size is client->req_len, especially with big requests larger than 2^18 bytes. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
3b0db0df71
commit
9111cffb35
|
@ -260,7 +260,7 @@ ShapeRectangles(ClientPtr client, xShapeRectanglesReq *stuff)
|
|||
client->errorValue = stuff->ordering;
|
||||
return BadValue;
|
||||
}
|
||||
nrects = ((stuff->length << 2) - sizeof(xShapeRectanglesReq));
|
||||
nrects = ((client->req_len << 2) - sizeof(xShapeRectanglesReq));
|
||||
if (nrects & 4)
|
||||
return BadLength;
|
||||
nrects >>= 3;
|
||||
|
|
Loading…
Reference in New Issue