summaryrefslogtreecommitdiff
path: root/ewmh
diff options
context:
space:
mode:
authorArnaud Fontaine <arnau@debian.org>2009-12-16 00:55:20 +0100
committerArnaud Fontaine <arnau@debian.org>2010-11-14 20:22:29 +0900
commitd590e26e6f9ed6f8b5456b99c2c52322d87c46de (patch)
tree6a5f2a8a747a9293ee6f47d9e1eef396048a3192 /ewmh
parentec400624bdfae62cf24c2263c02c4dba281c2d53 (diff)
xcb_ewmh_send_client_message: check whether the data fit the ClientMessage
Diffstat (limited to 'ewmh')
-rw-r--r--ewmh/ewmh.c.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/ewmh/ewmh.c.m4 b/ewmh/ewmh.c.m4
index 0b3fb09..50e49a0 100644
--- a/ewmh/ewmh.c.m4
+++ b/ewmh/ewmh.c.m4
@@ -491,6 +491,8 @@ xcb_ewmh_send_client_message(xcb_connection_t *c,
ev.format = 32;
ev.type = atom;
+ assert(data_len <= (5 * sizeof(uint32_t)));
+
memcpy(ev.data.data32, data, data_len);
return xcb_send_event(c, 0, dest, XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY |