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

--- Comment #10 from Fabio <ctrlal...@gmail.com> ---
(In reply to Marcel Hasler from comment #9)
> But here's a simple example to show that you cannot rely on the data 
> remaining valid:

I know that when the local function variable goes out of scope it's not safe to
use anymore.
FreeRDP creates an internal duplicate of the "path" string using _strdup():

> if ((!isPath && !isSpecial) || !(drive->Path = _strdup(path)))

>From that point FreeRDP will use its internal copy of the string stored in
drive->Path.
So, even if our variable gets deleted, it doesn't matter.

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

Reply via email to