Button mask and labels are reported wrong, array offset of 1 element
Bug #980041 reported by
Chase Douglas
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://
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.
Related branches
Changed in libxi (Ubuntu): | |
status: | In Progress → Fix Committed |
tags: | added: precise |
To post a comment you must log in.
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) button_ mask_and_ labels. patch from upstream
- Add patch 0001_fix_
-- Chase Douglas <email address hidden> Thu, 12 Apr 2012 09:30:18 -0700