Skip to content

(release/25.1) Xi/exevents: fix off-by-one in UpdateDeviceState valuator bounds check#2808

Open
metux wants to merge 1 commit into
release/25.1from
pr/release/25.1-xi-exevents-fix-off-by-one-in-updatedevicestate-valuator-bounds-check-_2026-05-18_20-30-27
Open

(release/25.1) Xi/exevents: fix off-by-one in UpdateDeviceState valuator bounds check#2808
metux wants to merge 1 commit into
release/25.1from
pr/release/25.1-xi-exevents-fix-off-by-one-in-updatedevicestate-valuator-bounds-check-_2026-05-18_20-30-27

Conversation

@metux
Copy link
Copy Markdown
Contributor

@metux metux commented May 18, 2026

There is no OOB write, the loop a few lines below has the correct
i < numAxes check. But this does set last_valuator to an invalid
value which may have flow-on effects elsewhere later.

Assisted-by: Claude:claude-claude-opus-4-6
Part-of: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2200

@metux metux self-assigned this May 18, 2026
@metux metux requested a review from a team May 18, 2026 18:30
metux pushed a commit that referenced this pull request May 18, 2026
There is no OOB write, the loop a few lines below has the correct
i < numAxes check. But this does set last_valuator to an invalid
value which may have flow-on effects elsewhere later.

Assisted-by: Claude:claude-claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2200>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
@metux metux force-pushed the pr/release/25.1-xi-exevents-fix-off-by-one-in-updatedevicestate-valuator-bounds-check-_2026-05-18_20-30-27 branch from 682ace9 to 33452c5 Compare May 19, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants