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

Requesting a handle_token with org.freedesktop.portal.RemoteDesktop.CreateSession containing a special character causes the portal to crash #1549

Open
Kale-Ko opened this issue Dec 24, 2024 · 0 comments
Labels

Comments

@Kale-Ko
Copy link

Kale-Ko commented Dec 24, 2024

Operating System

Arch Linux

XDG Desktop Portal version

1.18

XDG Desktop Portal version (Other)

No response

Desktop Environment

KDE

Desktop Environment (Other)

No response

Expected Behavior

An error response is returned or the message is discarded.

Current Behavior

The portal crashes.

Steps to Reproduce

  1. Run gdbus call --session --dest org.freedesktop.portal.Desktop --object-path /org/freedesktop/portal/desktop --method org.freedesktop.portal.RemoteDesktop.CreateSession '{"handle_token": <"token_with_special_&">, "session_handle_token": <"valid_token">}' in a terminal

Anything else we should know?

Core Dump: core.dump.tar.gz

If the arguments are reversed the portal seems to just discard the message as expected.

@Kale-Ko Kale-Ko added the bug label Dec 24, 2024
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant