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

--- Comment #13 from Marcel Hasler <mahas...@gmail.com> ---
(In reply to Fabio from comment #12)
> (In reply to Marcel Hasler from comment #11)
> > The point I was trying to make is that by the time freerdp actually calls
> > _strdup, both temporary QByteArray instances have already been destroyed and
> > the pointers are therefore no longer valid.
> 
> It's true in your code example in
> https://bugs.kde.org/show_bug.cgi?id=482137#c9 because of the curly braces
> specifically added to declare data1 inside a different scope.
> It's not true in the code used in the fix for krdc:
> https://invent.kde.org/network/krdc/-/merge_requests/114/diffs

Yes it is. Remove the curly braces and see for yourself.

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

Reply via email to