Description of problem:
An XI 1.x grab on a disabled device leads to a NULL-pointer dereference crashing the server.
Version-Release number of selected component (if applicable):
Can be reproduced on a virtual machine (see example below), but same will happen with other devices
Steps to Reproduce:
1. xinput set-prop "ImEXPS/2 Generic Explorer Mouse" "Device Enabled" 0
2. start gimp, Edit, Preferences, Input Devices, Configure Extended Input Devices
3. change the QEMU tablet and the ImEXPS/2 mouse to mode "screen"
4. Open a canvas, click on the canvas.
On receiving the button event, the GIMP will grab all input devices with XGrabDevice(), causing a crash.
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.
xorg-x11-server-1.13.0-5.el6 is available in brew
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.