Skip to content

Fix a system-helper crash#2831

Closed
matthiasclasen wants to merge 1 commit intoflatpak:masterfrom
matthiasclasen:system-helper-deploy-crash
Closed

Fix a system-helper crash#2831
matthiasclasen wants to merge 1 commit intoflatpak:masterfrom
matthiasclasen:system-helper-deploy-crash

Conversation

@matthiasclasen
Copy link
Copy Markdown
Collaborator

As seen in #2829, the system-helper crashes while trying to access an as parameter as s. Looking at the likely culprits for this, I find that the permission check for Deploy has an off-by-one error where it tries to get the installation, but passes the offset for the previous_ids parameter.

It would be less error-prone to use introspection data and refer to parameters by name here.

As seen in flatpak#2829,
the system-helper crashes while trying to access an as
parameter as s. Looking at the likely culprits for this,
I find that the permission check for Deploy has an off-by-one
error where it tries to get the installation, but
passes the offset for the previous_ids  parameter.
@Erick555
Copy link
Copy Markdown
Contributor

I can confirm this patch seems to fix that part of my report.

@matthiasclasen
Copy link
Copy Markdown
Collaborator Author

I got another confirmation for this fix, so

@rh-atomic-bot r+

@rh-atomic-bot
Copy link
Copy Markdown

📌 Commit 9647c95 has been approved by matthiasclasen

@rh-atomic-bot
Copy link
Copy Markdown

⚡ Test exempted: merge already tested.

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.

3 participants