mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-25 21:02:21 +00:00
xserver: Avoid sending uninitialized padding data over the network
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
b735a4b495
commit
ddb8d8945d
24 changed files with 86 additions and 16 deletions
|
|
@ -111,6 +111,7 @@ deliverPropertyNotifyEvent(WindowPtr pWin, int state, Atom atom)
|
|||
{
|
||||
xEvent event;
|
||||
|
||||
memset(&event, 0, sizeof(xEvent));
|
||||
event.u.u.type = PropertyNotify;
|
||||
event.u.property.window = pWin->drawable.id;
|
||||
event.u.property.state = state;
|
||||
|
|
@ -479,6 +480,7 @@ ProcGetProperty(ClientPtr client)
|
|||
return(BadAtom);
|
||||
}
|
||||
|
||||
memset(&reply, 0, sizeof(xGetPropertyReply));
|
||||
reply.type = X_Reply;
|
||||
reply.sequenceNumber = client->sequence;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue