[PATCH xserver] dix: Don't leak swapped events

Keith Packard keithp at keithp.com
Tue Mar 28 18:01:26 UTC 2017

Adam Jackson <ajax at redhat.com> writes:

> The original code here is silly. Just allocate an event on the stack and
> swap into that instead of forcing an ever-growing array into the heap.

If this path also handles generic event, then it will need to deal with
events that don't fit into an xEvent.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170328/118d48cd/attachment-0001.sig>

More information about the xorg-devel mailing list