Skip to content

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.

1 participant