xserver: Avoid sending uninitialized padding data over the network
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
b735a4b495
commit
ddb8d8945d
@@ -1466,6 +1466,7 @@ ProcGetModifierMapping(ClientPtr client)
|
||||
if (ret != Success)
|
||||
return ret;
|
||||
|
||||
memset(&rep, 0, sizeof(xGetModifierMappingReply));
|
||||
rep.type = X_Reply;
|
||||
rep.numKeyPerModifier = max_keys_per_mod;
|
||||
rep.sequenceNumber = client->sequence;
|
||||
@@ -1621,6 +1622,7 @@ ProcGetKeyboardMapping(ClientPtr client)
|
||||
if (!syms)
|
||||
return BadAlloc;
|
||||
|
||||
memset(&rep, 0, sizeof(xGetKeyboardMappingReply));
|
||||
rep.type = X_Reply;
|
||||
rep.sequenceNumber = client->sequence;
|
||||
rep.keySymsPerKeyCode = syms->mapWidth;
|
||||
|
||||
Reference in New Issue
Block a user