Skip to content

Fix buffer overflow in rofi -e after reading from stdin #2082

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

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

faulesocke
Copy link
Contributor

See #2081 for more info. This fixes the problem. Tested it.

It is always possible to write at msg[index] since there will be exactly 1024 bytes free after the read data, which ends at index -1.

@DaveDavenport
Copy link
Collaborator

Thanks!

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