wayland/protocol
Derek Foreman ff992951a7 tests: Check for wrong fd delivery with zombie objects
Until recently, if an event attempting to deliver an fd to a zombie
object was demarshalled after the object was made into a zombie, we
leaked the fd and left it in the buffer.

If another event attempting to deliver an fd to a live object was in that
same buffer, the zombie's fd would be delivered instead.

This test recreates that situation.

While this is a ridiculously contrived way to force this race - delivering
an event from a destruction handler - I do have reports of this race
being hit in real world code.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Acked-by: Daniel Stone <daniels@collabora.com>
2018-01-09 15:20:00 +00:00
..
.gitignore Update .gitignore for protocol/ 2013-11-19 13:26:04 -08:00
tests.xml tests: Check for wrong fd delivery with zombie objects 2018-01-09 15:20:00 +00:00
wayland.dtd protocol: add the new bitfields to the dtd 2015-11-17 14:36:21 +02:00
wayland.xml protocol: make get_subsurface double-buffered 2017-12-05 10:43:17 +00:00