<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - xcb_send_event() reads beyond end of argument / is hard to use correctly"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99946#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - xcb_send_event() reads beyond end of argument / is hard to use correctly"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99946">bug 99946</a>
from <span class="vcard"><a class="email" href="mailto:josh@freedesktop.org" title="Josh Triplett <josh@freedesktop.org>"> <span class="fn">Josh Triplett</span></a>
</span></b>
<pre>Events always have exactly 32 bytes on the wire; they don't have length fields.
I think the specification of the existing xcb_send_event assumed that all
event senders would provide 32 bytes to avoid copies. However, I'd agree that
that makes it harder to use, and more importantly much easier to misuse.
A hypothetical xcb_send_event with a length could avoid copies by using writev
and having a fixed-size 32-byte array of padding to use as varying amounts of
as the other half.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>