test/input.c: dix_enqueue_events() enqueues InternalEvents with uninitialized garbage
Submitted by Frank Schaefer
Assigned to Xorg Project Team
Description
Created attachment 116704 initialize event list before use
dix_enqueue_events() passes InternalEvent structs to EnqueueEvent() with only a couple of fields initialized, and the any.header field in particular left bogus for all but the first event.
In my case, I somehow got just lucky enough that the fourth InternalEvent consistently got a value of 0xac in any.header. This tripped up process_input_proc() and caused a test failure.
Solution is simple: just initialize the event list before we do anything with it.
Attachment 116704, "initialize event list before use":
test-input.diff
Version: git