Requesting a handle_token
with org.freedesktop.portal.RemoteDesktop.CreateSession
containing a special character causes the portal to crash
#1549
Labels
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
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 terminalAnything 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.
The text was updated successfully, but these errors were encountered: