Red Hat Bugzilla – Bug 804907
libXi sets the event->display value to garbage
Last modified: 2013-02-21 02:58:07 EST
Description of problem:
The display member of XI2 events is garbage. The cookies themselves are fine, the actual event is uninitialised though.
Version-Release number of selected component (if applicable):
Requires custom test program. select for XI2 events, call XGetEventData() on a cookie and then check the display member of the cookie data.
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release. Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.
(In reply to comment #0)
> How reproducible:
> Requires custom test program. select for XI2 events, call XGetEventData() on
> a cookie and then check the display member of the cookie data.
Peter do we have such program in hand?
Created attachment 601619 [details]
This program fails with an assertion error if the error manifests itself. It requires human input (moving the pointer when prompted) to ensure a even is received and can be checked.
Created attachment 606133 [details]
Updated for bugfix. mask.mask wasn't initialised, so depending on its contents the server may have replied with a BadValue error. Fixed by setting mask data to 0.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.