https://bugs.kde.org/show_bug.cgi?id=482137

--- Comment #7 from Fabio <ctrlal...@gmail.com> ---
(In reply to Marcel Hasler from comment #6)
> This is a bug in RdpSession::start().

I confirm your  patch fixes the issue. A small variant has been submitted here:
https://invent.kde.org/network/krdc/-/merge_requests/114

> 3. The pointer returned by m_preferences->shareMedia().toLocal8Bit().data() 
> is no longer valid by the time it's passed to
> freerdp_client_add_device_channel, since it references a temporary object
> that no longer exists at this point

FreeRDP internally calls _strdup on that parameter in
https://github.com/FreeRDP/FreeRDP/blob/stable-2.0/client/common/cmdline.c#L185
, so it's safe to use

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to