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 segfault when opening non-existant file #1306

Merged
merged 1 commit into from Apr 3, 2024

Conversation

penn5
Copy link
Contributor

@penn5 penn5 commented Mar 17, 2024

When OpenURI was called with a file-descriptor to a file whose path was not available (whether due to sandboxing or race conditions) this caused an obscure crash, which is resolved by this commit.

This fixes https://retrace.fedoraproject.org/faf/problems/603686/

@penn5
Copy link
Contributor Author

penn5 commented Mar 17, 2024

Tests seem broken on main

@GeorgesStavracas GeorgesStavracas added this to the 1.20 milestone Apr 1, 2024
Copy link
Member

@GeorgesStavracas GeorgesStavracas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, not sure what's going on with the tests

When OpenURI was called with a file-descriptor to a file whose path was not
available (whether due to sandboxing or race conditions) this caused an
obscure crash, which is resolved by this commit.
@penn5
Copy link
Contributor Author

penn5 commented Apr 3, 2024

Rebased on main, hopefully that will fix tests

@swick
Copy link
Contributor

swick commented Apr 3, 2024

also LGTM

@GeorgesStavracas GeorgesStavracas added this pull request to the merge queue Apr 3, 2024
Merged via the queue into flatpak:main with commit 7cc1561 Apr 3, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Triaged
Development

Successfully merging this pull request may close these issues.

None yet

3 participants