Open FrostyCoolSlug opened 10 months ago
Sorry I replied late, because I have been busy at work recently.
That is a very weird phenomenon, and I think you're right.
In the past, I used std::ffi::OsString::from_wide(& name)
in get_proc_name function,now I have changed it to String::from_utf16_lossy(&name)
Hi,
This is likely related to 714e5f1 and #3, in the current master, NULL characters aren't being correctly handled when creating the pname, so the following code:
Will output tasks like:
svchost.exe
So the process name, and enough null characters up to 260 characters, so looks like
get_proc_name
isn't handling the null termination correctly.