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 undefined behaviour in X11 keypress handling #1989

Closed
wants to merge 1 commit into from
Closed

Fix undefined behaviour in X11 keypress handling #1989

wants to merge 1 commit into from

Conversation

silversquirl
Copy link

1 << 31 is undefined because 1 is an int, so the shift would set the sign bit

Related to (and discovered in the same way as) #1986

`1 << 31` is undefined because 1 is an int, so the shift would set the sign bit
silversquirl pushed a commit to silversquirl/mach that referenced this pull request Nov 12, 2021
slimsag pushed a commit to hexops/mach that referenced this pull request Nov 15, 2021
slimsag pushed a commit to hexops/mach-glfw that referenced this pull request Nov 15, 2021
@elmindreda elmindreda self-assigned this Nov 29, 2021
@elmindreda elmindreda added bug Bug reports and bugfix pull requests X11 labels Nov 29, 2021
@elmindreda elmindreda added this to Todo in Queue Nov 29, 2021
slimsag pushed a commit to hexops/mach that referenced this pull request Dec 28, 2021
repatch undefined behavior in GLFW which did not land yet and was accidentally removed when updating GLFW in #136 

See glfw/glfw#1989

Fixes #149
slimsag pushed a commit to hexops/mach-glfw that referenced this pull request Dec 28, 2021
repatch undefined behavior in GLFW which did not land yet and was accidentally removed when updating GLFW in #136 

See glfw/glfw#1989

Fixes hexops/mach#149
@elmindreda elmindreda added the verified Reproduced or otherwise verified bugs label Mar 11, 2022
@elmindreda elmindreda removed this from Todo in Queue Mar 11, 2022
@elmindreda elmindreda added the duplicate Issues duplicating another issue label Mar 11, 2022
@elmindreda
Copy link
Member

Thank you for the PR! This should finally be fixed now with b54fb0a from #1951.

@elmindreda elmindreda closed this Mar 11, 2022
@elmindreda elmindreda added this to the 3.3.7 milestone Mar 11, 2022
slimsag pushed a commit to hexops/mach-glfw that referenced this pull request Aug 26, 2022
slimsag pushed a commit to hexops/mach-glfw that referenced this pull request Aug 26, 2022
repatch undefined behavior in GLFW which did not land yet and was accidentally removed when updating GLFW in #136 

See glfw/glfw#1989

Fixes hexops/mach#149
slimsag pushed a commit to hexops/mach-glfw that referenced this pull request Aug 26, 2022
repatch undefined behavior in GLFW which did not land yet and was accidentally removed when updating GLFW in #136 

See glfw/glfw#1989

Fixes hexops/mach#149
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports and bugfix pull requests duplicate Issues duplicating another issue verified Reproduced or otherwise verified bugs X11
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants