Button mask and labels are reported wrong, array offset of 1 element

Bug #980041 reported by Chase Douglas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libxi (Ubuntu)
Fix Released
Medium
Chase Douglas

Bug Description

libXi transforms the XI wire protocol data into client library structures. A recent change ensured that the client structures were formatted properly so doubles were aligned to 8 bytes. However, this change introduced an off-by-one bug when copying button state and labels. The fix is here:

http://cgit.freedesktop.org/xorg/lib/libXi/commit/?id=8436c920953f288aea2d6d5f370f8eaaaef82d97

Without this fix, xinput list <device id|device name> is broken. It fails with an error about a bad atom passed to XGetAtomName because the last button label returned from XIQueryDevice() is invalid.

Tags: precise

Related branches

Changed in libxi (Ubuntu):
status: In Progress → Fix Committed
tags: added: precise
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libxi - 2:1.6.0-0ubuntu2

---------------
libxi (2:1.6.0-0ubuntu2) precise; urgency=low

  * Report button state and labels correctly (LP: #980041)
    - Add patch 0001_fix_button_mask_and_labels.patch from upstream
 -- Chase Douglas <email address hidden> Thu, 12 Apr 2012 09:30:18 -0700

Changed in libxi (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.