| author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-06 12:25:28 (GMT) |
|---|---|---|
| committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-08 04:24:47 (GMT) |
| commit | 8b583ca2b21155359c6255f406c96599b277c762 (patch) (side-by-side diff) | |
| tree | c8787b369306505617bd45def8a8829cb9ba5f31 | |
| parent | 7ab5e9b97c300bba793a23fa13506b0c77c50ddf (diff) | |
| download | xserver-8b583ca2b21155359c6255f406c96599b277c762.zip xserver-8b583ca2b21155359c6255f406c96599b277c762.tar.gz | |
Xi: fix copy/paste error causing sizeof against wrong struct.
This wrong check may cause BadLength to be returned to the client even if the
length is correct.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
| -rw-r--r-- | Xi/xiproperty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/xiproperty.c b/Xi/xiproperty.c index 8c6d53a..7e20e03 100644 --- a/Xi/xiproperty.c +++ b/Xi/xiproperty.c @@ -747,7 +747,7 @@ ProcXChangeDeviceProperty (ClientPtr client) return BadValue; } len = stuff->nUnits; - if (len > ((0xffffffff - sizeof(xChangePropertyReq)) >> 2)) + if (len > ((0xffffffff - sizeof(xChangeDevicePropertyReq)) >> 2)) return BadLength; sizeInBytes = format>>3; totalSize = len * sizeInBytes; |
