mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[PR #1827] Fix out-of-bounds access in XWindowsScreen::updateButtons #1831
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#1831
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/debauchee/barrier/pull/1827
Author: @DuBistKomisch
Created: 11/6/2022
Status: 🔄 Open
Base:
master← Head:fix-linux-out-of-bounds📝 Commits (1)
9cfd521Fix out-of-bounds access in XWindowsScreen::updateButtons📊 Changes
2 files changed (+5 additions, -5 deletions)
View changed files
📝
src/lib/platform/XWindowsScreen.cpp(+4 -4)📝
src/lib/platform/XWindowsScreen.h(+1 -1)📄 Description
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:
doc/newsfragmentsdirectory IF it is auser-visible change (and make sure to read the
README.mdin that directory)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.