[Xcb] [Bug 99946] xcb_send_event() reads beyond end of argument / is hard to use correctly
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Feb 24 19:02:51 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=99946
--- Comment #1 from Josh Triplett <josh at freedesktop.org> ---
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.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/xcb/attachments/20170224/4832d09b/attachment.html>
More information about the Xcb
mailing list