Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null not handled on process names #5

Open
FrostyCoolSlug opened this issue Jan 7, 2024 · 0 comments
Open

Null not handled on process names #5

FrostyCoolSlug opened this issue Jan 7, 2024 · 0 comments

Comments

@FrostyCoolSlug
Copy link
Contributor

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:

let tasks = tasklist::Tasklist::new();
tasks.for_each(|task| println!("{}", task.get_pname()));

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant