diff options
author | Peter Åstrand <astrand@cendio.se> | 2009-02-13 10:23:28 +0100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-02-16 13:28:38 +1000 |
commit | ddb8d8945d1f44d16adc366b6612eef20ae813f7 (patch) | |
tree | d40a0cf5909a20f399827005336f49a2e84ed7ba /Xext | |
parent | b735a4b4951b607e614682836f24d5fd86c1f7fb (diff) |
xserver: Avoid sending uninitialized padding data over the network
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xext')
-rw-r--r-- | Xext/bigreq.c | 1 | ||||
-rw-r--r-- | Xext/shape.c | 2 | ||||
-rw-r--r-- | Xext/shm.c | 1 | ||||
-rw-r--r-- | Xext/sync.c | 1 |
4 files changed, 5 insertions, 0 deletions
diff --git a/Xext/bigreq.c b/Xext/bigreq.c index 8857df37e..e50376c6e 100644 --- a/Xext/bigreq.c +++ b/Xext/bigreq.c @@ -64,6 +64,7 @@ ProcBigReqDispatch (ClientPtr client) return BadRequest; REQUEST_SIZE_MATCH(xBigReqEnableReq); client->big_requests = TRUE; + memset(&rep, 0, sizeof(xBigReqEnableReply)); rep.type = X_Reply; rep.length = 0; rep.sequenceNumber = client->sequence; diff --git a/Xext/shape.c b/Xext/shape.c index fbf8f8c6d..2a6a38b7d 100644 --- a/Xext/shape.c +++ b/Xext/shape.c @@ -256,6 +256,7 @@ ProcShapeQueryVersion (ClientPtr client) int n; REQUEST_SIZE_MATCH (xShapeQueryVersionReq); + memset(&rep, 0, sizeof(xShapeQueryVersionReply)); rep.type = X_Reply; rep.length = 0; rep.sequenceNumber = client->sequence; @@ -682,6 +683,7 @@ ProcShapeQueryExtents (ClientPtr client) rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess); if (rc != Success) return rc; + memset(&rep, 0, sizeof(xShapeQueryExtentsReply)); rep.type = X_Reply; rep.length = 0; rep.sequenceNumber = client->sequence; diff --git a/Xext/shm.c b/Xext/shm.c index 7b63484a5..1f963c16c 100644 --- a/Xext/shm.c +++ b/Xext/shm.c @@ -309,6 +309,7 @@ ProcShmQueryVersion(ClientPtr client) int n; REQUEST_SIZE_MATCH(xShmQueryVersionReq); + memset(&rep, 0, sizeof(xShmQueryVersionReply)); rep.type = X_Reply; rep.length = 0; rep.sequenceNumber = client->sequence; diff --git a/Xext/sync.c b/Xext/sync.c index 9236fab87..a30895ddf 100644 --- a/Xext/sync.c +++ b/Xext/sync.c @@ -1144,6 +1144,7 @@ ProcSyncInitialize(ClientPtr client) REQUEST_SIZE_MATCH(xSyncInitializeReq); + memset(&rep, 0, sizeof(xSyncInitializeReply)); rep.type = X_Reply; rep.sequenceNumber = client->sequence; rep.majorVersion = SYNC_MAJOR_VERSION; |