Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix out-of-bounds access in XWindowsScreen::updateButtons #1827

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DuBistKomisch
Copy link

This code triggers an assertion in gcc's std_vector.h on my system due to a logical button 0 causing a write to m_buttons[-1], and a SIGABRT.

I've tried to make this code do what it seems to be intended to do, but m_buttons isn't actually read from anywhere anyway.

Contributor Checklist:

  • I have created a file in the doc/newsfragments directory IF it is a
    user-visible change (and make sure to read the README.md in that directory)

This code triggers an assertion in gcc's std_vector.h on my system due
to a logical button 0 causing a write to m_buttons[-1], and a SIGABRT.

I've tried to make this code do what it seems to be intended to do, but
m_buttons isn't actually read from anywhere anyway.
shymega pushed a commit to input-leap/input-leap that referenced this pull request Dec 18, 2022
This code triggers an assertion in gcc's std_vector.h on my system due
to a logical button 0 causing a write to m_buttons[-1], and a SIGABRT.

I've tried to make this code do what it seems to be intended to do, but
m_buttons isn't actually read from anywhere anyway.

(Note from Input Leap maintainer @shymega: PR imported from
debauchee/barrier#1827)

Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
shymega added a commit to input-leap/input-leap that referenced this pull request Dec 18, 2022
This code triggers an assertion in gcc's std_vector.h on my system due
to a logical button 0 causing a write to m_buttons[-1], and a SIGABRT.

I've tried to make this code do what it seems to be intended to do, but
m_buttons isn't actually read from anywhere anyway.

Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>

(Maintainer's note (@shymega): PR from debauchee/barrier#1827)
(cherry picked from commit 4cc700c)
shymega added a commit to input-leap/input-leap that referenced this pull request Dec 18, 2022
This code triggers an assertion in gcc's std_vector.h on my system due
to a logical button 0 causing a write to m_buttons[-1], and a SIGABRT.

I've tried to make this code do what it seems to be intended to do, but
m_buttons isn't actually read from anywhere anyway.

Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>

(Maintainer's note (@shymega): PR from debauchee/barrier#1827)
(cherry picked from commit 4cc700c)
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
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.

None yet

1 participant